cython加速python_安裝與簡單使用

1.寫一個test.pyx(一般是py,但爲了用cython編譯,我們需要把後綴改成.pyx ) import time def run_time(func): def run(*args): t1 = time.time() func(*args) t2 = time.time() print('run time:{}'.f
相關文章
相關標籤/搜索