PyCharm 中 Python 控制台和终端的区别 [英] Difference between Python console and Terminal in PyCharm

查看:105
本文介绍了PyCharm 中 Python 控制台和终端的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Python 初学者.我最近开始使用 PyCharm,但我不知道终端和控制台之间有什么区别.终端中的某些命令在控制台中不起作用.

I am a beginner in Python. I started using PyCharm recently but I don't know what's the difference between Terminal and console. Some of the commands in Terminal do not work in console.

谢谢

推荐答案

在讨论区别之前,我们需要先谈谈两者在实践中的区别.终端基本上取代了 Windows 上的命令提示符/power-shell 和 Mac 上的终端应用程序,让您可以无需离开 PyCharm 即可访问它们.

Before we can talk about the differences, we need to talk about what the two are in practice. The Terminal, essentially replaces your command-prompt/power-shell on windows and the terminal app on Mac, giving you a way to access them without leaving PyCharm.

另一方面,PyCharm 控制台是Python 控制台"的更高级版本,它允许您运行一些 Python.它也被称为 Python REPL 或 Read Eval Print Loop

The PyCharm console on the other hand, is a more advanced version of the "Python Console", which allows you to run bits of Python. It is also called the Python REPL or Read Eval Print Loop

您也可以从终端调用 Python 控制台.

You can invoke the Python Console from the terminal as well.

这篇关于PyCharm 中 Python 控制台和终端的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆