摘要: 一、元祖(tuple) #定义tuple3 = ("zhangsanfeng",118,"武当","武当")##(1)取值print(tuple3[0]) #取出元组中第1个元素的值print(tuple3.index(118)) #找出118的索引,下标print(tuple3.index("武当 阅读全文
posted @ 2021-05-11 21:04 /**serenity*/ 阅读(135) 评论(0) 推荐(0)