您可以使用sys
库或其他任何库来在计算机上打开应用吗?
答案 0 :(得分:0)
我认为您只想在Windows计算机上运行.exe。您可以使用以下代码通过sys库完成此操作:
# import os on the top of your script
import os
# Running this line will open app
os.system('C:\Windows\notepad.exe')
只需将“'C:\ Windows \ notepad.exe”替换为应用程序的绝对路径即可。