Python, Press Any Key To Exit

后端 未结 9 1292
渐次进展
渐次进展 2020-12-31 06:16

So, as the title says, I want a proper code to close my python script. So far, I\'ve used input(\'Press Any Key To Exit\'), but what that does, is generate a er

9条回答
  •  感动是毒
    2020-12-31 07:07

    As far as I know there is no way to 'press any key'. The input and raw_input commands require you to press the ENTER key. (raw_input is not supported in Python 3.x)

提交回复
热议问题