Python2 Source Code Study: pyc
· ☕ 8 min read
This article uses the Python 2.7.8 source code as an example.
1. Common File Formats in Python py file A Python source code file, which can be modified with a text editor.
pyc file The bytecode file generated after Python source code is compiled.
pyw file When a pyc file is executed, a console window appears; when a pyw file is executed, it does not.