-
PYX file is a Pyrex source.
Pyrex is a Language for Writing Python Extension modules.
Pyrex lets you write code that mixes Python and C data types any way you want, and compiles it into a C extension for Python.
.pyx
fileCython
programming language “write”Python
Extension module source code file..pyx
File similar to C language.c
source code file,.pyx
filesThe source code of the
Cython
module.unlike
Python
Language can be explained directly.py
file,.pyx
File must be compiled first.c
file, compile it into.pyd
(Windows
platform) or.so
(Linux
platform) File can be used as a moduleimport
Import and use. -
.py Python Script
.pym Python Macro File
.pyc Python Bytecode
.pyd Python Dynamic Module
.pyo Python Optimized Code
.tcl TCL Script
.pxd Pyrex Definition File
.pyr Python Repository
.pth Python Path Configuration
.pxi Pyrex Include File
-
.pyd
file isNon -python
, “compiled-compilation” by other programming languagesPython
Extension module..pyd
is a binary file, which can only be compiled and viewed, essentiallyDLL
file.Python
To import.pyd
file, actually.pyd
File encapsulated amodule
. existWhen using in
python
, take it asmodule
Come and use it, that is:"Import path name. Moduleename"
, the path is namedThe path where the file is located.
.pyd
leetcode62 different paths (related topics: dynamic planning, combination arrangement, state compression)
2023-01-22
ES