屬性添加怎么出現錯我
?school.append('ha')
Traceback (most recent call last):
? File "<pyshell#34>", line 1, in <module>
? ? school.append('ha')
AttributeError: 'tuple' object has no attribute 'append'
?school.append('ha')
Traceback (most recent call last):
? File "<pyshell#34>", line 1, in <module>
? ? school.append('ha')
AttributeError: 'tuple' object has no attribute 'append'
2016-02-02
舉報
2016-02-02
樓上正解。。。。
2016-02-02
你創建的school是tuple類型的對象,tuple 類型的對象創建了不能再向里面添加數據了