2019年1月8日
摘要: from functools import lru_cache import time from functools import wraps def clock(func): @wraps(func) def clocked(*args, **kwargs): t0 = time.time() r 阅读全文
posted @ 2019-01-08 14:38 hailuo 阅读(421) 评论(0) 推荐(0) 编辑
摘要: import fileinput with fileinput.input(files=(path1,path2)) as f: for line in f: print(line) 阅读全文
posted @ 2019-01-08 10:59 hailuo 阅读(316) 评论(0) 推荐(0) 编辑