摘要: 浮点型时间格式转换: GMT_FORMAT = '%Y-%m-%d %H:%M:%S' ta = str(w['create_datetime']).split(".")[0] create_datetime = datetime.datetime.strptime(ta, GMT_FORMAT) 阅读全文
posted @ 2022-11-14 22:13 门徒21 阅读(25) 评论(0) 推荐(0)
摘要: 代码: if user_actions_name: # 获取自定义事件详情 print(' 自定义事件名 ') print(user_actions_name) new_custom_item = [] for w in data: custom_name = json.loads(w['custo 阅读全文
posted @ 2022-11-14 21:41 门徒21 阅读(252) 评论(0) 推荐(0)
摘要: from dvadmin.utils.json_response import SuccessResponse return SuccessResponse(data=new_custom_item, msg="获取成功")数据格式为: [{'名字': '韩梅梅'}, {'动作': '跳舞'}, { 阅读全文
posted @ 2022-11-14 17:05 门徒21 阅读(25) 评论(0) 推荐(0)