摘要: 1.yield协成: # 本来想使用协成但是发现效果差不多 def get_coroutine(f): def wrapper(*args, **kwargs): gen = f(*args) # retfunc r = gen.__next__() # 激活生成器函数delete_docker d 阅读全文
posted @ 2020-07-02 10:04 楠海 阅读(355) 评论(0) 推荐(0)
摘要: 方式一 import os path = r"C:\Users\yzt\Desktop\work\InfosecTestPlatform\libs\Log\mainline1-nohup.log" ##################### """ file.seek(off, whence=0): 阅读全文
posted @ 2020-07-02 09:55 楠海 阅读(412) 评论(0) 推荐(0)