摘要:
1.创建新字典(根据语法和dict初始化方法)>>> my_dict={'a':1,'b':2,'c':3}>>> my_dict=dict({'a':1,'b':2,'c':3})>>> mydcit=dict(a=1,b=2,c=3)>>> mydict=dict([('a',1),('b'... 阅读全文
摘要:
str.join(iterable)Return a string which isconcatenation the of the strings in theiterableiterable. The separator between elements is the string prov... 阅读全文
摘要:
strig=“what is your name”substring="name"str.endswith(suffix[,start[,end]])str.find(sub[,start[,end]])str.index(sub[,start[,end]])str.rfind(sub[,start... 阅读全文