【问题标题】:Making a python script that continues on enter [duplicate]制作一个继续输入的python脚本[重复]
【发布时间】: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!')`

【问题讨论】:

标签: python


【解决方案1】:

你可以试试:

input('this was a triumph')
input('Im making a note here, huge success!')

或:

print('this was a triumph')
input('Press Enter To Continue:')
print('Im making a note here, huge success!')

【讨论】:

    猜你喜欢
    • 2021-01-24
    • 2021-08-30
    • 2012-12-03
    • 2017-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-22
    相关资源
    最近更新 更多