A program doesn’t run any faster when it is read from a .pyc file than when it is read from a .py file; the only thing that’s faster about .pyc files is the speed with which they are loaded.

https://docs.python.org/3/tutorial/modules.html?highlight=compile#compiled-python-files

猜你喜欢

转载自www.cnblogs.com/yuanjiangw/p/11949504.html