文件 text.txt 的内容如下:
Python is a programming language. Python is easy to learn.
Many people use Python for data analysis and web development.
Python has a large community and many libraries.
以下代码实现了统计文件中单词 Python 出现的次数的功能,以下哪个选项是正确的?( )。
count = 0with open("text.txt", "r") as f: content = f._____①_____ words = content._____②_____ for word in words: if word == "Python": count += 1print(f"Python出现次数:{count}")