python - vscode python没有输出
问题描述
print("hello")
无论我在 python 文件中写什么,它只给出当前文件路径。我该如何解决?
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Gangs-MacBook-Pro:yashirq gangzhao$ /usr/bin/python3 /Users/gangzhao/yashirq/Practice/Python/Grokking_Algorithms/Binary_Search.py
解决方案
你是如何运行文件的?您通常必须设置环境。如果您只想运行单个 python 文件并在集成终端中查看输出,请尝试右键单击编辑器,然后单击Run Python File in Terminal
.
推荐阅读
- facebook - 如何请求位置子页面的权限?
- python - Range() 函数将字典中的整数(值)更改为对象
- c# - .NET Core 的自定义 Specflow html 报告的想法
- python - 尝试在服务器上运行 django 应用程序时密码身份验证失败
- sql-server - 在 SQL-Server 中重写 Oracle 函数
- google-cloud-platform - GKE 上的 Nginx 控制器与 TCP 负载平衡超时
- ignite - Apache Ignite 找不到已部署的服务
- javascript - 提升仅在 JavaScript 中实现吗?
- c - 向前定义 GCC 的编译指示
- javascript - 将分组查询转换为对象树