for loop in file handling (python)

后端 未结 0 1041
走了就别回头了
走了就别回头了 2020-12-06 20:13

f = open("food.txt", "r")

for line in f: print(line)

I don\'t understand how the above for loop reads the file line by line? Why not charac

相关标签:
回答
  • 消灭零回复
提交回复
热议问题