python3.x - When using the batch start command to run a specified Python script, as long as the path or name of the Python script contains Chinese characters, it cannot be executed. How to solve it?
typecho
typecho 2017-06-12 09:27:29
0
1
873

All the following commands can be successfully entered and executed directly in the cmd window, but some will fail when executed after being saved into a .bat file
1.start Python C:\English\test.py (Success)
2.start Python C:\English\test中文.py(Failure)
3.start Python C:\中文\test.py(failed)
4.start Python C:\中文\test中文.py(failed)

typecho
typecho

Following the voice in heart.

reply all(1)
女神的闺蜜爱上我

You can try using quotation marks

start "Python C:\中文\test.py"
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!