执行已编译的代码execfile("hello.py")defEXECFILE(filename,locals=None,globals=None):execcompile(open(filename).read(),filename,"exec")inlocals,globalsEXECFILE("hello.py")helloagain,andwelcometotheshowhelloagain,andwelcometotheshow显式地访问__builtin__模块中的函数Python还