2021年11月23日
摘要: import re# match()方法,从左到右进行匹配result=re.match('www','www.haowww12.www.3.www.com')print(result) #(0,3)""" . 匹配任意1个字符(除了\n) [] 匹配[]中列举的字符 \d 匹配数字,也就是0-9 阅读全文
posted @ 2021-11-23 16:43 长征中的蜗牛 阅读(58) 评论(0) 推荐(0) 编辑
摘要: #时间模块import timeprint(time.time()) #返回当前时间戳print(time.localtime()) #返回以元组形式的当前时间,time.struct_time(tm_year=2021, tm_mon=11, tm_mday=23, tm_hour=15, tm_ 阅读全文
posted @ 2021-11-23 15:25 长征中的蜗牛 阅读(33) 评论(0) 推荐(0) 编辑