删除名称中包含 space 且 Python 的文件
Remove a file containing space in the name with Python
我正在尝试删除名称中包含 space 的文件。我正在使用 Mac 并转义 space 字符。但是它仍然会抛出错误。
这是截图,
我该如何解决这个问题?
不需要转义 space 字符。
不需要转义 space 字符。
os.remove("/Users/karthik/Desktop/screenshot 2.png")
我正在尝试删除名称中包含 space 的文件。我正在使用 Mac 并转义 space 字符。但是它仍然会抛出错误。
这是截图,
我该如何解决这个问题?
不需要转义 space 字符。
不需要转义 space 字符。
os.remove("/Users/karthik/Desktop/screenshot 2.png")