元组的基本魔法

1.tu.count(22) 获取指定元素在元组中出现的次数

 

2.tu.index(22)获取某个值的索引位置,可以确定区间

posted on 2018-05-03 11:30  monster7  阅读(89)  评论(0)    收藏  举报

导航