D:\Python\python.exe: can't open file 'f:\\我的文件\\重要物品\\Python\\自制模块\\_print_\\输入程序名称,例如 F:\\我的文 件\\重要物品\\a.exe': [Errno 22] Invalid argument
这啥意思呀?帮修复!
该回答引用NewBing
你好,这是必应。根据我搜索的结果①②③,这个错误可能是由于你的文件路径中有空格或特殊字符导致的。你可以尝试用引号括起文件路径,或者把文件移动到一个没有空格或特殊字符的目录下。希望这能帮到你。
源: 与必应的对话, 2023/2/26
(1) python - 'invalid argument' error opening file (and not reading file .... https://stackoverflow.com/questions/26662247/invalid-argument-error-opening-file-and-not-reading-file 访问时间 2023/2/26.
(2) file - Python -How to solve OSError: [Errno 22] Invalid argument .... https://stackoverflow.com/questions/63194917/python-how-to-solve-oserror-errno-22-invalid-argument 访问时间 2023/2/26.
(3) (Errno 22) invalid argument when trying to run a python program from a .... https://stackoverflow.com/questions/39432939/errno-22-invalid-argument-when-trying-to-run-a-python-program-from-a-bat-file 访问时间 2023/2/26.