python第一个程序之hello word

时间:2026-02-20 21:24:09

1、打开“vi 编辑器”(这里我使用的是Ubuntu 终端)

python第一个程序之hello word

2、新建“hello_word.py”文件,在新弹出对话框中输入“print('hello word!!!')”

python第一个程序之hello word

python第一个程序之hello word

3、保存退出,在命令行中输入执行文件:“python hello_word.py”

如照片所示打印出hello word!!

python第一个程序之hello word

python第一个程序之hello word

1、输入python,在">>"之后输入:print("hello word!!!")

python第一个程序之hello word

python第一个程序之hello word

© 2026 裕芯经验网
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com