【发布时间】:2021-01-19 08:58:50
【问题描述】:
我正在用 python 制作一个终端类型的程序,我想知道我是否可以让它在你按下回车后打印下一行文本 例如
`print('this was a triumph')
#press enter to print the next line
print('Im making a note here, huge success!')`
【问题讨论】:
-
使用
input('Press enter to print next line') -
这能回答你的问题吗? How do I make python wait for a pressed key?
标签: python