def test():
print("123")
if __name__ == "__main__":
test()
# -*- coding: utf-8 -*-
import os
cur_path = os.getcwd()
scrip_path = os.path.join(cur_path, "01.py")
command = f"python3 {scrip_path}"
result = os.popen(command).read()
print(type(result))
print(result)
转载请注明原文地址:https://ipadbbs.8miu.com/read-50930.html