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 #引
相關文章
相關標籤/搜索