如何在运行控制台的PyCharm中禁用自动打印?

时间:2018-10-28 11:10:53

标签: python pycharm

我正在使用PyCharm 2018.2.4学习Python3。我已通过SSH将PyCharm连接到虚拟机。但是,当我单击“运行”按钮然后在“运行控制台”中键入一些字符串时,无论是否没有“打印”功能,它都会自动打印该字符串。

我的代码:

if __name__ == '__main__':
    str1 = input()

运行控制台中的输出:

ssh://root@192.168.1.111:22/usr/bin/python -u /root/LearnPython/hello.py
Hello World! <== This is my input!
Hello World! <== It automatically prints!

Process finished with exit code 0

这是我的打印屏幕:https://i.imgur.com/rr7z5Mv.png

0 个答案:

没有答案
相关问题