我正在逐行处理文件
for line in mix_files[i]:
if my_string in line:
use the next line # How to get the next line
找到包含文本的行后,我需要处理下一行。有没有什么简单的方法来获取下一行(例如,增加一个迭代器),而不是不太舒服的方法:
get line number -> increment line number -> use the next line
谢谢你的帮助。