.PYC 文件扩展名

Python Compiled File

开发者 Python Software Foundation
受欢迎程度
3.7  |  72 
 

什么是 PYC 文件?

A PYC file is a compiled version of a Python script (.PY file). When Python code is executed, the interpreter compiles the script into bytecode and then saves it as a PYC file. PYC files allow Python to run the program more efficiently since the code doesn’t need to be recompiled each time it is executed.

更多信息

Python typically automatically generates a PYC file when you run a Python script, then stores it in a __pycache__ folder. The PYC file allows the Python interpreter to skip the compilation process on subsequent runs, improving performance, especially for larger applications.

如何打开 PYC 文件

You should not attempt to open or modify PYC files. Instead, Python references the files internally to decrease program execution time.

警告

PYC files may be targeted and infected by various types of malware, including the Python.Pytroj virus, to interleave harmful code into the binaries of Python applications that reference the infected PYC files. To protect against PYC files that have been potentially infected by a virus, install an antivirus program on your computer that detects viruses like the Python.Pytroj virus.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开或引用 PYC 文件的程序

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 Python Compiled 文件格式和 Mac, Windows, and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们