>>> classmates=('tom','sean')
>>> classmates.append('hary')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'tuple' object has no attribute 'append'
为啥总是提醒无法append?请大佬们指教,谢谢~
Sign in to make a reply
朗月清风处处游
>>> classmates=('tom','sean')
>>> classmates.append('hary')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'tuple' object has no attribute 'append'
为啥总是提醒无法append?请大佬们指教,谢谢~