在Python Shell里面执行.py文件 2019-04-20 本文已影响0人 DingDingYuan exec(open('filename.py').read()) 如果带有中文: exec(open('filename.py'..encode('utf-8')).read())