python的shell中运行.py文件

python中想在shell中调用一个script1.py文件里面的方法。 script1.py文件里面的内容如下: #A first Python script import sys print(sys.platform) print(2 ** 100) x= 'Spam!' print(x * 8) 如何在shell中调用py中的内容呢。 其实主要加几行就够了:   import sys #引
相关文章
相关标签/搜索