摘要: 元组: 作用:存多个值,元组不可变,主要用来读 age=(11,22,33,44,55) print(age[2]) #取出元组内的值 print(age[1:4]) #取出元组内的某些值 print(age.index(33)) #取出33的索引 print(age.count(33)) #取出值 阅读全文
posted @ 2017-07-11 13:52 sexiaoshuai 阅读(165) 评论(0) 推荐(0) 编辑