摘要: 元组 定义: ti=() print(ti,type(ti)) 参数:for可以循环的对象(可迭代对象) t2=tuple("123") # ('1', '2', '3') <class 'tuple'> ←print(t2,type(t2)) t3=tuple([1,2,3]) # (1, 2, 阅读全文
posted @ 2019-03-25 19:13 zhoyong 阅读(240) 评论(0) 推荐(0)