第一步 新建py文件

新建txt文件,将名字改为 hello.py,复制以下内容,粘贴到hello.py文件中保存

第二步 运行python

在文件夹地址栏输入 cmd 回车,在cmd中输入 python hello.py 运行看结果

python代码

print("hello")
print("123456")

下载代码

https://www.18k.icu/code/python/hello.py