How to count the number of lines that a specific word occurs in a txt file?

后端 未结 0 2015
野趣味
野趣味 2020-12-07 06:16

I\'m not sure if this is enough code, but I am reading a txt file and I want to figure out how to print the number of lines that contain "hello".

I already

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