2016年1月2日
摘要: 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'... 阅读全文
posted @ 2016-01-02 14:03 保质期两天 阅读(184) 评论(0) 推荐(0) 编辑
摘要: str.join(iterable)Return a string which isconcatenation the of the strings in theiterableiterable. The separator between elements is the string prov... 阅读全文
posted @ 2016-01-02 10:09 保质期两天 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2016-01-02 10:00 保质期两天 阅读(353) 评论(0) 推荐(0) 编辑