08 2022 档案
用json.loads加载[{},{},{}...]数据
摘要:由于JSON中,标准语法中,不支持单引号,属性或者属性值,都必须是双引号括起来的 import json content = open("123.txt").read() print(content) content = content.replace("'", '"') #替换单引号为双引号 pr
阅读全文
加了一个判断不存在字段的逻辑
摘要:#筛选类型数据和创建日期大于2022年1月1日,根据shaixuanleixingandbiaoti.py修改 class ShaiXuanLeiXingAndBiaoTi: def __init__(self,file_name): self.file_name = file_name self.
阅读全文
springboot使用JWT
摘要:1.pom.xml中添加依赖: <!--JWT配置依赖--> <dependency> <groupId>com.auth0</groupId> <artifactId>java-jwt</artifactId> <version>3.10.3</version> </dependency> <!-
阅读全文
筛选类型数据和创建日期大于2022年1月1日
摘要:#筛选类型数据和创建日期大于2022年1月1日,根据shaixuanleixingandbiaoti.py修改 class ShaiXuanLeiXingAndBiaoTi: def __init__(self,file_name): self.file_name = file_name self.
阅读全文
https://www.cnblogs.com/holten/p/5729226.html
摘要:https://www.cnblogs.com/holten/p/5729226.html 统一封装 https://www.cnblogs.com/holten/p/5729226.html https://www.cnblogs.com/itachilee/p/13184976.html
阅读全文
筛dateType为特定值,并进行roomLiveTitle去重
摘要:#筛选类型数据和标题并进行标题去重 class ShaiXuanLeiXingAndBiaoTi: def __init__(self,file_name): self.file_name = file_name self.mubiao_list = [] self.sheqi_list=[] se
阅读全文
筛选dataType为特定值的内容
摘要:#筛选类型数据 class ShaiXuanLeiXing: def __init__(self,file_name): self.file_name = file_name self.mubiao_list = [] self.sheqi_list=[] self.read_list=self.r
阅读全文