如何在IDLE中使反斜杠(\)工作? [英] How do I make backslash (\) work in IDLE?

查看:209
本文介绍了如何在IDLE中使反斜杠(\)工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Mac,并且要键入\时使用 Shift + Alt + /.我正在尝试学习Python,正如您所见,\效果很好,但在IDLE中却不行.

I use a Mac and I use Shift + Alt + / when I want to type a \. I'm trying to learn Python and as you can see \ works fine, but not in IDLE.

如何使IDLE中的反斜杠(\)工作?

How do I make backslash (\) work in IDLE?

推荐答案

由于此问题在OSX 10.8和python 2.7.5和3.3.2上仍然存在,并且由于这是搜索反斜杠空闲时的第一个Google匹配,因此更实用的解决方案,而不是复制和粘贴: 转到:

Since this problem still persists on OSX 10.8 with python 2.7.5 and 3.3.2 and since this is the first google hit when searching for backslash idle here is a more practical solution instead of copy and pasting: Go to:

idle->preferences->keys

在操作键下替换:

expand-word <Option-Key-Slash>

带有您喜欢的内容:

expand-word <Control-Option-Key-Slash>

这应该解决它.

这篇关于如何在IDLE中使反斜杠(\)工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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