简体   繁体   English

从 Python 控制台复制文本时,PyCharm 复制控制台指示符 (`>>>`)

[英]PyCharm copy console indicator (`>>>`) when copying text from Python console

When I copy this text:当我复制这段文字时:

在此处输入图像描述

and paste it into a text field, I just get:并将其粘贴到文本字段中,我得到:

scipy.special.softmax([1,1])
array([0.5, 0.5])

I would like to get:我想得到:

>>> scipy.special.softmax([1,1])
array([0.5, 0.5])

This is the behaviour when using the Python interactive console normally outside PyCharm.这是在 PyCharm 之外正常使用 Python 交互式控制台时的行为。

this seems to be reported already, please see https://youtrack.jetbrains.com/issue/PY-52621/Unable-to-copy-code-from-the-console-as-plain-text and feel free to vote in order to increase the priority.这似乎已经被报道过,请参阅https://youtrack.jetbrains.com/issue/PY-52621/Unable-to-copy-code-from-the-console-as-plain-text并随时投票为了增加优先级。

I apologize for the inconvenience.我带来的不便表示歉意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM