三种实现的对比:
(1)纯python
x.py
(2) x2.pyx
编译文件:
x2_setup.py
编译:
python x2_setup.py build_ext --inplace
(3) x3.pyx
编译文件:
x3_setup.py
编译:
python x3_setup.py build_ext --inplace
运行效果对比:
三种实现的对比:
(1)纯python
x.py
(2) x2.pyx
编译文件:
x2_setup.py
编译:
python x2_setup.py build_ext --inplace
(3) x3.pyx
编译文件:
x3_setup.py
编译:
python x3_setup.py build_ext --inplace
运行效果对比: