【发布时间】:2021-11-04 18:15:51
【问题描述】:
import subprocess
first_command: str = input("Hello sir. Would you like for me to do anything?> ")
if str(first_command) == str("JARVIS Open Spotify" or "Hey Jarvis open spotify" or "Open spotify" or "launch spotify"):
subprocess.Popen(r"C:\Users\Administrator\Downloads\Spotify.exe
(对不起,如果这是一个愚蠢的问题,我刚开始编程)
【问题讨论】:
-
您的问题不清楚。您需要有关设置配置以在 Pycharm 中运行文件的帮助吗?
-
1) 您在
Popen调用中有一个 SyntaxError 2) 重复:How to test multiple variables against a single value?
标签: python subprocess