“Comment lancer une application à l'aide de Python” Réponses codées

Comment ouvrir une application à l'aide de Python

import os

os.system("program_name") # To open any program by their name recognized by windows

# OR

os.startfile("path to application or any file") # Open any program, text or office document
Action Kamen

Comment lancer une application à l'aide de Python

import subprocess

subprocess.Popen("C:\\Windows\\System32\\notepad.exe") #This will launch notepad But you can enter the path of an executable and this will launch it.
not_A_Developer

Réponses similaires à “Comment lancer une application à l'aide de Python”

Questions similaires à “Comment lancer une application à l'aide de Python”

Plus de réponses similaires à “Comment lancer une application à l'aide de Python” dans Python

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code