摘要:
while True: print(li) list_ex = re.split('\(([^()]*)\)',li,1) print(list_ex) if len(list_ex) == 3: before = list_ex[0] content = list_ex[1] after = li 阅读全文
posted @ 2017-12-04 21:40
张艳晖
阅读(99)
评论(0)
推荐(0)
摘要:
time模块所包括的函数能够实现以下功能:获得当前时间,操作时间和日期、从字符串读取时间以及格式化时间为字符。 1 time.sleep()#计算机休眠(不做任何事情)secs秒 2 time.time()#返回当前时间(新纪元开始后的秒数) 3 time.ctime()#返回当前时间的字符串格式 阅读全文
posted @ 2017-12-04 11:02
张艳晖
阅读(104)
评论(0)
推荐(0)

浙公网安备 33010602011771号