>>> a = (10,20,30,40,50)
>>> a
(10, 20, 30, 40, 50)
>>> type(a)
<class 'tuple'>
>>> type(a[1])
<class 'int'>
>>> print(a[1,type(a[1])])
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
print(a[1,type(a[1])])
TypeError: tuple indices must be integers or slices, not tuple
>>> print(a[1],type(a[1]))
20 <class 'int'>
老师为什么这个元组对象查找出来,返回的为啥是整形int,而不是元组tuple