如何在logging.info中包含stdin / raw_input?

时间:2018-09-17 13:35:22

标签: python python-2.7

我正在使用https://docs.python.org/2/library/logging.html创建屏幕日志,但是我在raw_input()中缺少标准输入。

logger.info('Enter your name:')
your_name = raw_input()

您知道如何包含用户输入的字符串吗? 我不想看到用户的输入两次。

谢谢。

0 个答案:

没有答案