浏览代码

‘处罚编号’优化

admin 4 年之前
父节点
当前提交
641319bf27
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 3
      BiddingKG/dl/complaint/punish_predictor.py
  2. 1 1
      BiddingKG/dl/test/test4.py

文件差异内容过多而无法显示
+ 3 - 3
BiddingKG/dl/complaint/punish_predictor.py


+ 1 - 1
BiddingKG/dl/test/test4.py

@@ -116,7 +116,7 @@ def test(name,content):
 if __name__=="__main__":
     # filename = "比地_52_79929693.html"
     #text = codecs.open("C:\\Users\\User\\Desktop\\数据20191014\\"+filename,"r",encoding="utf8").read()
-    text = codecs.open("C:\\Users\\User\\Desktop\\2.html","r",encoding="utf8").read()
+    text = codecs.open("C:\\Users\\admin\\Desktop\\新建文本文档 (3).txt","r",encoding="utf8").read()
     content = str(BeautifulSoup(text).find("div",id="pcontent"))
     # df_a = {"html":[]}
     # df_a["html"].append(re.sub('\r|\n|\r\n',"",content))

部分文件因为文件数量过多而无法显示