元组的引用

 
 

元组的使用

元组是不可变的

元组的功能 count index

tu.count('x')  元组中元素的出现次数

tu.index('x')  返回指定元素的索引值


猜你喜欢

转载自blog.csdn.net/qq_41646730/article/details/80681908
今日推荐