Python代码
import os
def open_ss():
os.startfile('C:\\WINDOWS\\system32\\SnippingTool.exe')
错误消息
File "<stdin>", line 1, in <module>
File "C:\Users\Jong\Desktop\Projects\MiniScript\main.py", line 5, in open_ss
os.startfile('C:\\WINDOWS\\system32\\SnippingTool.exe')
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\WINDOWS\\system32\\SnippingTool.exe'
为什么指定的文件显示为“C:\\ WINDWOS \\ system \\ SnippingTool.exe” 而不只是“C:\ WINDWOS \ system \ SnippingTool.exe”