新建 test.py ,用VSCode打开,输入代码:
print("Hello world!") input("Press Enter to exit...")
看到VSCode右上角有个三角形按钮了吗?按一下即可运行。
运行结果:
Hello world! Press Enter to exit...