f = open("lock.txt")line = f.readline()while line:line = f.readline()print(line)前一个line = f.readline()明白,为什么在while中还要再写line = f.readline() 查看完整描述