for in 循环在python3.3使用报错处理

file = open("file.txt","r")

for line in file:

     print (line)   #这个line一定要加“()”,否则会报语法错误



你可能感兴趣的:(for in 循环在python3.3使用报错处理)