V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iMath
V2EX  ›  问与答

VS Code 无法运行有中文的 py 文件怎么办?

  •  
  •   iMath · Nov 5, 2022 · 1053 views
    This topic created in 1270 days ago, the information mentioned may be changed or developed.
    我的 py 文件是“`② 必须第一次就运行 PkgHelper.py`”,运行的时候 VS Code 识别为乱码(如下),请问怎么解决?
    改文件名为英文的方法我知道,想问问还有没有别的方法


    PS F:\BaiduNetdiskDownload\SoftwareProject\LYYDownloader-dev\打包> & C:/Users/22815/AppData/Local/Programs/Python/Python39/python.exe "f:/BaiduNetdiskDownload/SoftwareProject/LYYDownloader-dev/打包 / 必须第一次就运行 PkgHelper.py"
    C:\Users\22815\AppData\Local\Programs\Python\Python39\python.exe: can't open file 'f:\BaiduNetdiskDownload\SoftwareProject\LYYDownloader-dev\鎵撳
    寘\ 蹇呴』绗竴娆″氨杩愯PkgHelper.py': [Errno 2] No such file or directory

    PS F:\BaiduNetdiskDownload\SoftwareProject\LYYDownloader-dev\打包>
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   981 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 19:26 · PVG 03:26 · LAX 12:26 · JFK 15:26
    ♥ Do have faith in what you're doing.