错误之源:
>>> li=[]
>>> li.apppend('s')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'apppend'
请看清楚 正确的是 append 而不是 apppend。
上面之所以出现错误,是因为多了一个p
错误之源:
>>> li=[]
>>> li.apppend('s')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'apppend'
请看清楚 正确的是 append 而不是 apppend。
上面之所以出现错误,是因为多了一个p