下列那种不是python元组的定义方式
a = (1)
b = (1,)
c = (1, 2)
d = (1, 2, (3, 4))
print(a, type(a))
print(b, type(b))
print(c, type(c))
print(d, type(d))
# 第一种定义方式不是元组
# 1 <class 'int'>
# (1,) <class 'tuple'>
# (1, 2) <class 'tuple'>
# (1, 2, (3, 4)) <class 'tuple'>