[英]Command Line on VSCode
I'm new to programming and using python. I am unable to use the terminal to use command-line work.我是编程和使用 python 的新手。我无法使用终端来使用命令行工作。 I can run script, but nothing from the command line我可以运行脚本,但不能从命令行运行
I cannot even do print('hello'), though I can do that on idle我什至不能做 print('hello'),虽然我可以在闲置时做
I have reviewed some tutorials, but they are of no help我已经查看了一些教程,但它们没有帮助
If you're talking about VS Code built-in terminal (Ctrl+`), before execute print('hello')
or some similar code, you should first start Python interective session by typing in python
and hitting Enter
.如果您正在谈论 VS Code 内置终端 (Ctrl+`),在执行print('hello')
或一些类似代码之前,您应该首先通过输入python
并按Enter
启动 Python interective session。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.