gpt4 book ai didi

python - 在 shell 中运行 python 的脚本

转载 作者:太空宇宙 更新时间:2023-11-04 11:21:25 24 4
gpt4 key购买 nike

我在 Linux 上运行 python。我想知道运行 python 解释器的脚本。

意思是,每当我在 linux shell 上运行命令 python 时,Python 提示打开并从键盘获取输入并将这些输入带到底层 python 解释器。我想知道哪个 shellscript(或python 脚本)这样做吗?我想知道它的位置。

最佳答案

这不是一个 python 脚本,您可以像任何 .py 文件一样简单地获取和修改它。为了使用交互式解释器,您必须下载 python 源并浏览它们,因为它是它的内置部分(出于性能考虑)。

您可以在 http://docs.python.org/devguide/ 上阅读详细信息

关于python - 在 shell 中运行 python 的脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18014580/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com