import subprocess f = subprocess.Popen(['tail', '-F', "/var/log/xferlog"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) while True: line = f.stdout.readline() print(line)
上一篇 CSP学习资料与精简总结
下一篇 Python基础教程(第3版)小笔记
版权所有 ©2023-2025 051e.com
ICP备案号:京ICP备12030808号