摘要:bytes() 匿名函数
阅读全文
posted @ 2018-10-24 20:48
|
|
|
随笔分类 - python
摘要:def tail(filename): f = open(filename,encoding='utf-8') while True: line = f.readline() if line.strip(): yield line.strip() g = tail('file') for i in g: if 'p...
阅读全文
posted @ 2018-10-20 22:29
摘要:运行结果: abc1abcadsfasdfddddddddddddddddddefdef11
阅读全文
posted @ 2018-10-20 21:11
|
|