摘要:
import linecache def eachlineof(filename): with open(filename, 'r') as f: for cnt, line in enumerate(f): a = str(cnt) + ',' + line.strip('\n') yield a 阅读全文
摘要:
coding:utf 8 class _SingletonWrapper: """ A singleton wrapper class. Its instances would be created for each decorated class. """ def __init__(self, c 阅读全文