python:实现计数文本文件 以“I”或“M”开头的行数 # step1: def write_to_file(): with open("happy.txt", "a") as F: while True