a=(1,2,2,3)
可以数数‘2’:
print(a.count('2'))
可以查索引:
print(a.index('2'))
可以切片:
print(a[3:])
posted on 2018-10-13 17:00 别离 阅读(98) 评论(0) 收藏 举报