不想看到一大堆pyc文件,可以用下面的命令搞定:
import sys sys.dont_write_bytecode = True
地址 http://stackoverflow.com/questions/154443/how-to-avoid-pyc-files