摘要: 列表:1 num=['One','Two','Three'] #[]内表示一个列表,列表可以容纳任何类型元素2 print(num[1])3 nums=['One_1','One_2','One_3',['Two_1','Two_2',['Three_1','Three_2','Three_3']]]4 #多列表嵌套,nums[3][2][2]=Three3迭代:1 for each in num:2 print(eac 阅读全文
posted @ 2013-11-03 19:38 Code__Monkey 阅读(121) 评论(0) 推荐(0)