2024-03-28 14:32:15 发布
网友
我是Python新手,所以请解释您编写的任何代码!在
我希望input()在1个空行之后终止,以允许多行。在
input()
例如,如果我在使用input()时按Enter,我希望它转到下一行,但如果我再次按Enter,它将从程序中返回。在
试试这个:
quit = False while not quit: d = input() print(d) if d == '': quit = True
或者
试试这个:
或者
^{pr2}$相关问题 更多 >
编程相关推荐