Python 控制台提示在 PyCharm 中显示 In[] Out[] 而不是 >>>

标签 python python-3.x pycharm

我正在协助 Python 入门类(class),其中一名学生的命令提示符如下所示:

In[0]: 1 + 2
Out[0]: 3

而不是通常的:

>>> 1 + 2
3

我们如何让她回到通常的“>>>”提示?她使用 PyCharm 在 Windows 上运行 Python 3.6。

最佳答案

这就是 IPython 模式。您可以在设置中禁用它:

enter image description here

关于Python 控制台提示在 PyCharm 中显示 In[] Out[] 而不是 >>>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48360005/

相关文章:

python - 如何使用最新版本的 Pandas 进行 OLS 回归

python - 打破pycharm中未处理的异常

bash - 如何在pycharm中远程执行bash脚本?

python - 属性错误 : 'tuple' object has no attribute 'encode' - MySQLdb Python

python - NumPy 的/科学的 : Memory consumption increases linearly per iteration

python - 通过分布项乘以 Numpy 数组

python-3.x - python 3.x 中的语音识别

python - Pygame 碰撞检测无法按我想要的方式工作

python - 查找名称中带有特殊字符的目录中的文件

python - 将查找表应用于 DataFrame 以获取 bin 或范围