【发布时间】:2021-01-04 19:14:23
【问题描述】:
在 Windows 中,我有一个命令 Bubbles.scr/s,当在任何目录中输入 cmd 终端时,它会毫无问题地启动“Bubbles”屏幕保护程序。我正在尝试通过以下方式使用 Python 执行此操作:
import os
os.system("Bubbles.scr/s")
但我收到错误提示
'Bubbles.scr' is not recognized as an internal or external command,
operable program or batch file.
这里有什么问题? Bubbles.scr 位于C:\Windows\System32 目录中是否与此有关?
提前致谢!
【问题讨论】: