'\b'不在PyCharm控制台中打印退格 [英] '\b' doesn't print backspace in PyCharm console
问题描述
我想更新PyCharm控制台的最后一行。说,我打印 a
,然后我想将其更改为 c
。但是,我遇到以下问题。运行时:
I am trying to update the last line in PyCharm's console. Say, I print a
and then I want to change it to c
. However, I encounter the following problem. When I run:
print 'a\bc'
打印
a c
而所需的输出(这也是我在Windows控制台中看到的):
while the desired output (which is also what I see in the Windows console) is:
c
是否有移动光标的方法回到PyCharm的控制台?或者可以删除整行?
Is there a way to move the cursor back in PyCharm's console? or maybe delete the whole line?
推荐答案
这是一个已知的错误: http://youtrack.jetbrains.com/issue/PY-11300
It's a known bug: http://youtrack.jetbrains.com/issue/PY-11300
如果您关心这一点,请获取bug跟踪器上的帐户,并上传错误,让它更多的关注。
If you care about this, please get an account on the bug tracker and upload the bug to give it more attention.
这篇关于'\b'不在PyCharm控制台中打印退格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!