请问这个代码怎么改才能达到第一题的示范效果啊
result = '' with open('sample.txt','r') as fp: for line in fp.read(): if len(line) > len(result): result = line print(result)