exec(open('filename.py').read())
如果带有中文:
exec(open('filename.py'..encode('utf-8')).read())
exec(open('filename.py').read())
如果带有中文:
exec(open('filename.py'..encode('utf-8')).read())
本文标题:在Python Shell里面执行.py文件
本文链接:https://www.haomeiwen.com/subject/nkxlgqtx.html
网友评论