So führen Sie das Python -Skript in einem anderen Skript aus
import subprocess
subprocess.call(" python script2.py 1", shell=True)
kirito.
import subprocess
subprocess.call(" python script2.py 1", shell=True)
import myfile
myfile.myfunction
#calls a specific function from within the file
subprocess.call(" python script2.py 1", shell=True)
import fileB
fileB.my_func()