1.在桌面新建文本文档,命名为“hello.py”

2.在文档内输入:

print("hello")


3.win+r,然后输入“cmd”

4.输入“python ”(后面有个空格)然后将桌面的文档拖入窗体,回车

更多推荐

记事本方式编写和运行python代码