BrightXiong 发表于 2023-3-2 22:06:56

元组

>>> x = (520,)
>>> x
(520,)
>>> type(x)
<class 'tuple'>
>>> y = (520)
>>> y
520
>>> type(y)
<class 'int'>
>>> t = (123, "FishC", 3.14)
>>> x, y, z = t
>>> x
123
>>> y
'FishC'
>>> z
3.14
>>> s =
>>> t =
>>> w = (s, t)
>>> w
(, )
>>> w = 0
>>> w
(, )
页: [1]
查看完整版本: 元组