“元组”对象不可调用?

时间:2019-11-15 16:19:41

标签: python-3.7

    TypeError                                 Traceback (most recent call last)
<ipython-input-51-08821007cb29> in <module>
      1 values= input(' Enter some comma separated numbers : ')  # Your help here will be much appreciated
      2 List= values.split(',')
----> 3 x= tuple(List)
      4 print('List : ', List)
      5 print('Tuple : ', x)

TypeError: 'tuple' object is not callable

以上是我的整个代码,我不知道错误在哪里。另外,我使用的是蟒蛇的朱庇特笔记,我的python版本是3.7.4。

0 个答案:

没有答案