pu369com

2020年4月6日

python 正则匹配汉字、简单读写、打开txt文件

摘要: win10环境,假设: py脚本所在的当前目录下有index.html文件,现在, 要将index.html 中的汉字提取出来,保存为当前目录下的temp.txt,然后用notepad.txt打开查看。代码: #coding=utf8 import os,re with open('index.ht 阅读全文

posted @ 2020-04-06 13:51 pu369com 阅读(1337) 评论(0) 推荐(0) 编辑

导航