简体   繁体   English

可移植Python PyScripter解释器中不可见的已提交代码

[英]Invisible submitted code in Portable Python PyScripter Interpreter

I have installed Portable Python, including Portable PyScripter. 我已经安装了Portable Python,包括Portable PyScripter。 When I select some code in the Editor and I submit it (with Menu Run -> Run or Right-click -> Source Code -> Execute selection ), the code is well submitted in the Python Interpreter, but it is invisible. 当我在编辑器中选择一些代码并提交时(使用菜单运行->运行右键单击->源代码->执行选择 ),该代码在Python解释器中提交的很好,但是它是不可见的。 However when I directly type some code in the Interpreter, then the text is well colored. 但是,当我直接在解释器中键入一些代码时,文本的颜色就很好。 Moreover I don't find any option which could be the cause in the Editor options nor in the Interpreter options. 此外,我在“编辑器”选项或“解释器”选项中均未找到任何可能是原因的选项。

Since I am a little suspicious about my English, I hope my question is clearer with the screenshot below: 由于我对英语有些怀疑,因此希望通过以下屏幕截图可以更清楚地了解我的问题: 截图pyscripter

I have selected the code print("hello") in the Editor and submitted it to the Interpreter. 我已经在编辑器中选择了代码print("hello")并将其提交给解释器。 As you see, the code does not appear in the Interpreter but it has been well received. 如您所见,该代码未出现在解释器中,但已广受欢迎。

如果要使执行的代码出现在解释器窗口中,可以将代码复制到剪贴板,然后在解释器窗口中单击鼠标右键,然后选择“粘贴并执行”。

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

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