获取之前在 python 中输入的命令

发布于 2024-08-10 04:21:25 字数 154 浏览 2 评论 0原文

我在 macbook pro 上使用 IDLE 的 windows 中的 python 2.5。如何获取之前在 python shell 中输入的命令?在其他操作系统中,我设法使用“ctrl”+“向上箭头”或类似的组合来做到这一点。我已经尝试了所有可能的组合但没有成功。

谢谢。

I'm using python 2.5 in windows on a macbook pro with IDLE. How do I get previously typed commands in the python shell? In other operating systems I've managed to do this using 'ctrl' + 'up arrow' or a similar combination. I've tried all likely combinations without success.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

挽手叙旧 2024-08-17 04:21:25

我刚刚意识到我可以在“选项 -> ”中找到它配置IDLE->键 '

alt + p' 表示空闲。感谢您的建议 pfote - 我会看看。

I just realized that I can find this out in 'Options -> Configure IDLE -> Keys'

It's 'alt + p' for IDLE. Thanks for the suggestion pfote - I will take a look.

甜妞爱困 2024-08-17 04:21:25

检查 Windows 上是否有可用的 ipython ..它提供行历史记录、制表符补全和许多其他不错的功能

check if there is ipython available on windows .. that offers line history, tab completion and many other nice features

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文