PyCharm: How to debug `raw_input()` input from key

2019-03-02 02:14发布

问题:

I am using Python's raw_input to get input from keyboard.

How do I debug my code with PyCharm? I am unable to input from keyboard when (for example) name = raw_input("Input your name") is executed.

回答1:

You enter the input into the console that shows up, when you compile and run your script. Like so, the green text is the input.



标签: pycharm