2018年11月16日

day23-2018-11-16-Re 正则表达式

摘要: import re # res = re.search("e", "alex and exp") # 搜索. 搜到结果就返回 # print(res.group()) # res = re.match("\w+", "alex is not a good man") # 从头匹配. 如果匹配到了。 阅读全文

posted @ 2018-11-16 21:46 VastTry 阅读(201) 评论(0) 推荐(0) 编辑

day22-2018-11-15-模块2

摘要: import pickle # class Cat: # def __init__(self, name, color): # self.name = name # self.color = color # # def chi(self): # print("%s猫会吃老鼠" % self.name) # c = Cat("汪... 阅读全文

posted @ 2018-11-16 08:44 VastTry 阅读(149) 评论(0) 推荐(0) 编辑

导航