|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
>>> member
['小甲鱼', '小布丁']
>>> member,append("竹林小溪")
Traceback (most recent call last):
File "<pyshell#34>", line 1, in <module>
member,append("竹林小溪")
NameError: name 'append' is not defined
>>> member,append("福禄娃")
Traceback (most recent call last):
File "<pyshell#35>", line 1, in <module>
member,append("福禄娃")
NameError: name 'append' is not defined
>>> a=[1,2,3]
>>> a,append(4)
Traceback (most recent call last):
File "<pyshell#37>", line 1, in <module>
a,append(4)
NameError: name 'append' is not defined
>>> a,append("4")
Traceback (most recent call last):
File "<pyshell#38>", line 1, in <module>
a,append("4")
NameError: name 'append' is not defined
>>> len(member)
2
]
>>> member,extend("竹林小溪")
Traceback (most recent call last):
File "<pyshell#40>", line 1, in <module>
member,extend("竹林小溪")
NameError: name 'extend' is not defined
>>> member,insert(1,"牡丹")
Traceback (most recent call last):
File "<pyshell#41>", line 1, in <module>
member,insert(1,"牡丹")
NameError: name 'insert' is not defined
>>> insert
Traceback (most recent call last):
File "<pyshell#42>", line 1, in <module>
insert
NameError: name 'insert' is not defined |
|