t =(1,)
print(type(t))
t =(1)
print(type(t))
><class 'tuple'>
><class 'int'>
4.3.3 元组运算符
a = len((1,2,3)) ##元组长度
b = (1,2,3)+(3,5,6,) ##连接
c = 1 in (1,2,3)
d = max((1,2,3))
f= min((1,2,3))
print(a,b,c,d,f) ##循环
for i in (1,2,3):print(i,end=' ')
>3 (1, 2, 3, 3, 5, 6) True 3 1
>1 2 3