Python学习笔记(7)Mouse Input, More Lists and Dictionaries
下面的笔记内容来自coursera上的Python公开课。1list的常见用法list=[1,3,5,7,9]
in
if3inlist:
print“inlist”
else:
print“notin"
index
printlist.index(“5”)
append
list.append(11)#list=[1,3,5,7,9,11]
extend
pop
list.pop()#l