相关疑难解决方法(0)

TypeError:'list'对象在python中不可调用

我是Python的新手并且遵循教程.list教程中有一个例子:

example = list('easyhoss')
Run Code Online (Sandbox Code Playgroud)

现在,在教程中,example= ['e','a',...,'s'].但在我的情况下,我得到以下错误:

>>> example = list('easyhoss')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'list' object is not callable
Run Code Online (Sandbox Code Playgroud)

请告诉我我错在哪里.我搜索了这个,但它是不同的.

python list

43
推荐指数
5
解决办法
16万
查看次数

标签 统计

list ×1

python ×1