pyCookbook<dict,list,string>
摘要:
list ==>v = [1,2,3]v.extend([12,13]) # iterator object v.append(10)v.pop() # return last elementv.insert(index,value) # front is index later is valuev.sort(cmp) # sort , cmp is function user-definedv.index(position) # if position > len , raise exceptionv.reverse() # u knowv.count(value) # coun 阅读全文
posted @ 2011-10-07 21:33 Sweat 阅读(146) 评论(0) 推荐(0)
浙公网安备 33010602011771号