Instead, when data is exhausted, it returns an empty string. fp = open("input") while True: nstr = fp.readline() if len(nstr) ...
確定! 回上一頁