while True: try:a=input() except:break #過濾掉EOFError,讀到EOF後直接跳出迴圈if not a:break #輸入空字串時跳出迴圈print('hello,',a) 題目2.
確定! 回上一頁