.pyc相当于将.py编译成二进制文件,可以正常的导包调库。参考: python编译、运行、反编译pyc文件 https://blog.csdn.net/lixinkuan328/article/details/103358409