python 文件内容搜索、替换、添加

内容搜索python hello.txt 文件为:web hello world hello python hello China #文件查找 import re #引用re模块 f1 = open("hello.txt","r") content = f1.read() print("输出文件内容:\n",content) #输出文件内容 count = len(re.fin
相关文章
相关标签/搜索