>>> x=1,2,3 >>> x (1, 2, 3) >>> type(x) <class 'tuple'> >>> del x >>> x Traceback (most recent call last): File "<pyshell#4>", line 1, in <module> x NameError: name 'x' is not defined >>> x = (1,2,3) >>> x (1, 2, 3) >>> type(x) <class 'tuple'> >>> del x >>> x = () >>> x () >>> type(x) <class 'tuple'> >>> x = (42,) >>> x (42,) >>> type(x) <class 'tuple'>
标签:last,定义,42,元组,del,type From: https://www.cnblogs.com/sangern/p/17365966.html