Python 中输入多行可以通过多种方式实现,这里介绍两种比较常用的方法。 方法一:使用for 循环逐行读取 lines = [] while True: try: line = input() except: break if ...
確定! 回上一頁