python第一个程序之hello word

2025-12-17 11:29:52

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

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢