981377660LMT / ts

ts学习
6 stars 1 forks source link

Why does Python Code Run Faster in a Function? #524

Open 981377660LMT opened 4 months ago

981377660LMT commented 4 months ago

CPython codes within a function are faster than global, but pypy might bedoing something different

981377660LMT commented 4 months ago

https://codeforces.com/blog/entry/127058

981377660LMT commented 4 months ago

CPython :在函数中运行代码比在global运行代码块 pypy:与CPython相反