1.终端导入Cython
代码:pip install Cython
2.新建一个dl.py文件
def str_add(str1,str2):
return int(str1)+int(str2)
3.新建一个.pyx文件
4.终端运行cython run.pyx
1.终端导入Cython
代码:pip install Cython
2.新建一个dl.py文件
def str_add(str1,str2):
return int(str1)+int(str2)
3.新建一个.pyx文件
4.终端运行cython run.pyx