Raw input across multiple lines in Python. sentinel = 'end' # 遇到这个就结束 lines = [] for line in iter(input, sentinel): lines.append(line).
確定! 回上一頁