摘要: import timeimport reprint time.time()print time.localtime()a = 'tm_year=2016, tm_mon=5, tm_mday=28, tm_hour=6, tm_min=51, tm_sec=14, tm_wday=5, tm_yda 阅读全文
posted @ 2016-05-28 17:35 3one 阅读(144) 评论(0) 推荐(0) 编辑
摘要: import reresult1 = re.match('\d+', '1sssda22wdasfsa') # 匹配开头print type(result1)print result1if result1: print result1.group()else: print 'nothing'resu 阅读全文
posted @ 2016-05-28 14:40 3one 阅读(230) 评论(0) 推荐(0) 编辑