Chinaunix首页 | 论坛 | 博客
  • 博客访问: 156489
  • 博文数量: 42
  • 博客积分: 972
  • 博客等级: 准尉
  • 技术积分: 382
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-17 10:59
文章分类

全部博文(42)

文章存档

2014年(2)

2013年(5)

2012年(35)

我的朋友

分类: Python/Ruby

2012-11-22 10:38:03


点击(此处)折叠或打开

  1. $wife{"Jacob"} = ["Leah", "Rachel", "Bilhah", "Zilpah"];

  2. $wife{"Jacob"}[0] = "Leah";

  3. $wife{"Jacob"}[1] = "Rachel";

  4. $wife{"Jacob"}[2] = "Bilhah";

  5. $wife{"Jacob"}[3] = "Zilpah";


点击(此处)折叠或打开

  1. $kids_of_wife{"Jacob"} = {
  2.   "Leah"=> ["Reuben", "Simeon", "Levi", "Judah", "Issachar", "Zebulun"],
  3.   "Rachel" => ["Joseph", "Benjamin"],
  4.   "Bilhah" => ["Dan", "Naphtali"],
  5.   "Zilpah" => ["Gad", "Asher"],};


  6. $kids_of_wife{"Jacob"}{"Leah"}[0]= "Reuben";
  7.   $kids_of_wife{"Jacob"}{"Leah"}[1]= "Simeon";
  8.   $kids_of_wife{"Jacob"}{"Leah"}[2]= "Levi";
  9.   $kids_of_wife{"Jacob"}{"Leah"}[3]= "Judah";
  10.   $kids_of_wife{"Jacob"}{"Leah"}[4]= "Issachar";
  11.   $kids_of_wife{"Jacob"}{"Leah"}[5]= "Zebulun";
  12.   $kids_of_wife{"Jacob"}{"Rachel"}[0] = "Joseph";
  13.   $kids_of_wife{"Jacob"}{"Rachel"}[1] = "Benjamin";
  14.   $kids_of_wife{"Jacob"}{"Bilhah"}[0] = "Dan";
  15.   $kids_of_wife{"Jacob"}{"Bilhah"}[1] = "Naphtali";
  16.   $kids_of_wife{"Jacob"}{"Zilpah"}[0] = "Gad";
  17.   $kids_of_wife{"Jacob"}{"Zilpah"}[1] = "Asher";


阅读(1104) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~