“Comment appeler un script python d'un autre script python” Réponses codées

Comment exécuter le script Python dans un autre script

import subprocess
subprocess.call(" python script2.py 1", shell=True)
kirito.

Comment exécuter un fichier python à partir d'un autre fichier python

import  myfile

myfile.myfunction


#calls a specific function from within the file


Muddy Monkey

Exécutez le fichier python à partir d'un autre fichier python

subprocess.call(" python script2.py 1", shell=True)
Clear Copperhead

Comment appeler un script python d'un autre script python

import fileB
fileB.my_func()
Good Gnu

Réponses similaires à “Comment appeler un script python d'un autre script python”

Questions similaires à “Comment appeler un script python d'un autre script python”

Plus de réponses similaires à “Comment appeler un script python d'un autre script python” dans Python

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code