小编sp3*_*cro的帖子

AttributeError:“列表”对象没有属性“分割”

使用 Python 2.7.3.1

我不明白我的编码有什么问题!我收到此错误:AttributeError: 'list' object has no attribute 'split

这是我的代码:

myList = ['hello']

myList.split()
Run Code Online (Sandbox Code Playgroud)

python split attributeerror

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

标签 统计

attributeerror ×1

python ×1

split ×1