查看: 9  |  回复: 0
  Python 的Hello world!和运行及其等待,避免运行完一晃而过
楼主
发表于 今天 15:49

新建 test.py ,用VSCode打开,输入代码:

print("Hello world!")
input("Press Enter to exit...")

看到VSCode右上角有个三角形按钮了吗?按一下即可运行。

运行结果:

Hello world!
Press Enter to exit...


您需要登录后才可以回帖 登录 | 立即注册
【本版规则】请勿发表违反国家法律的内容,否则会被冻结账号和删贴。
用户名: 立即注册
密码:
2020-2025 MaNongKu.com