标签:str lin bsp adl coding encoding strip style def
#监听过滤的效果 def tail(filename): f = open(filename,encoding=‘utf-8‘) while 1: line = f.readline() if line.strip(): yield line.strip() q = tail(‘2019-9-1‘) for i in q: print(i)
标签:str lin bsp adl coding encoding strip style def
原文地址:https://www.cnblogs.com/li33232/p/11441771.html