[英]When I write in the terminal using python in VScode i can never write in the terminal like the tutorials are doing. how do I fix that?
You are typing in a z shell , but you are trying to execute python code.您正在输入z shell ,但您正在尝试执行 python 代码。 To enter python's interactive mode, you can simply type
/usr/bin/local/python3
(or python3
directly might work if things are setup correctly on your computer).要进入 python 的交互模式,您只需键入
/usr/bin/local/python3
(或者如果您的计算机上的设置正确,则直接使用python3
可能会起作用)。 Once you do that, you should see something like一旦你这样做,你应该看到类似的东西
Python 3.9.2 (default, Jul 16 2021, 11:47:35)
[Clang 12.0.5 (clang-1205.0.22.11)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
in which you can type your lines of python code您可以在其中键入 python 代码行
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.