摘要: #元组的声明 a = (1,2,3,4) #第一种print type(a)<type 'tuple'> a = 1,2,3,4 #第二种print type(a)<type 'tuple'> #元组的基本操作 查找,切片,求和 “元组为不可变序列,不支持原位改变” #查找 a = (1,2,3,4 阅读全文
posted @ 2018-02-10 19:13 白two 阅读(162) 评论(0) 推荐(0) 编辑