返回顶部
摘要: # __author:"Will Z" # date:2016/8/24 full_menu = {'河北省':{'张家口市':['蔚县','涿鹿县','怀来县','阳原县'], '唐山市':['丰润区','滦县','开平区','玉田县'], '衡水市':['武邑县','武强县','枣强县','市辖区... 阅读全文
posted @ 2016-08-24 16:42 Will_D_Zhang 阅读(187) 评论(0) 推荐(0) 编辑
摘要: #字符串操作 #定义字符串 a = "let's go" #字符串切片 print("helloworld"[2:]) #通过索引获取字符串中的字符,和列表切片同理 #关键字 in print("llo" in "helloworld") #返回TRUE或False #字符串拼接 #可以用+拼接字... 阅读全文
posted @ 2016-08-24 09:34 Will_D_Zhang 阅读(154) 评论(0) 推荐(0) 编辑