其他分享
首页 > 其他分享> > 元组

元组

作者:互联网

>>> tup1 = (1,2,3)
>>> tup2 = tup1*2
>>> tup2
(1, 2, 3, 1, 2, 3)
>>> tup3 = tup1 + tup2
>>> del tup1
>>> tup1
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
tup1
NameError: name 'tup1' is not defined

标签:last,name,元组,tup1,File,tup2,call
来源: https://www.cnblogs.com/xuanbjut/p/11256916.html