Strange error while increasing counter with: line +=1

前端 未结 0 345
予麋鹿
予麋鹿 2020-12-09 23:30

I want to find a word in a file and print in which line it appears.

line = 0
find = \'chicken\'
with open (\'this_file.txt\', \'r\') as f:
        read_data          


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