排行榜

  • 用户榜
  • 标签榜
  • 冲榜分奖金

频道

最新最热悬赏待采纳 筛选
  • 3

    回答

  • 18

    浏览

from flask import Flask from flask_sqlalchemy import SQLAlchemy import pymysql app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root@localhost:3306/wet' db = SQLAlchemy(app) example = example(data='have a try') db.session.add(example) db.session.commit() 一直报错: ImportError Traceback (most recent call last) <ipython-input-11-a96a529635f9> in <module> 1 from flask import Flask ----> 2 from flask_sqlalchemy import sqlalchemy 3 import pymysql 4 5 app = Flask(__name__) ~\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask_sqlalchemy\__init__.py in <module> 11 from threading import Lock 12 ---> 13 import sqlalchemy 14 from flask import _app_ctx_stack, abort, current_app, request 15 from flask.signals import Namespace ~\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\__init__.py in <module> 6 # the MIT License: http://www.opensource.org/licenses/mit-license.php 7 ----> 8 from . import util as _util # noqa 9 from .inspection import inspect # noqa 10 from .schema import BLANK_SCHEMA # noqa ImportError: cannot import name 'util' from 'sqlalchemy' (C:\Users\Auder\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sqlalchemy\__init__.py) 求问这是为啥呀?我是按照视频一点点学flask,该装的包都装了

  • 3

    回答

  • 18

    浏览

使用 Flask-Sqlalchemy 2.5.1  和 cymysql 0.9.91 连接mysql 数据库 , 查询数据时,提示sqlalchemy.exc.DBAPIError: (cymysql.err.Error) (<class 'TypeError'>, TypeError('ord() expected a character, but string of length 0 found'))

  • 1

    回答

  • 16

    浏览

如何用echarts实现点击节点显示相应属性详情,数据是存在Neo4j里的

  • 1

    回答

  • 23

    浏览

html是这样的: {% for key,value in re_sentence.items() %} <div id="ori_sentence" class="shadow-none p-3 mb-5 bg-light rounded"> <mark>{{loop.index}}</mark> <div id="key">{{key}}</div> <hr> <div id="value">{{value | safe }}</div> </div> <div id="editable"> <div class="shadow-sm p-3 mb-5 bg-white rounded"> <div id="upper"> <button type="button" class="btn btn-link" id="compare">Click to compare</button> <p>💭try to chunk the sentence below:</p> </div> <!-- <div contenteditable="true">{{key}}</div> --> <textarea class="form-control">{{key}}</textarea> <p id="parsedResult"> </p> </div> </div> <hr> {% endfor %} 然后在网页显示出来是这样:   有30个练习,所以我搞了 30个按钮 想要点一个按钮显示对应的练习,其他练习都不出现, python传回来的是一个字典 是可以直接用jquery实现还是要用到ajax(不会ajax)  

  • 0

    回答

  • 21

    浏览

基本情况: 通过flask_restful与pyhanlp做了一个接口,访问该接口返回情感预测值。在win环境下运行一切正常。 部署在centos8环境中,conda虚拟环境(与win的python版本还有包全部一致),uwsgi+niginx,运行到safeJclass()这块就没有返回了。 路由中还有纯python编写的接口,访问都正常。 排错过程中通过命令窗口进入到centos虚拟环境中,通过交互式界面运行这些代码都没有问题。 text_classifier =NaiveBayesClassifier(IOUtil.readObjectFrom(model_pat h)) from pyhanlp import * NaiveBayesClassifier = SafeJClass('com.hankcs.hanlp.classification.classi fiers.NaiveBayesClassifier') IOUtil = SafeJClass('com.hankcs.hanlp.corpus.io.IOUtil') model_path1='./server/product_frequency/ChnSentiCorp.ser' text_classifier =NaiveBayesClassifier(IOUtil.readObjectFrom(model_pat h1)) result1=text_classifier.classify("机柜偶i哦打死都汽车,大众高尔夫数据库的 急啊离开发窘蛋糕i风格就是对方") print(result1) 问题分析: 已经基本定位到在通过JPype调用java时候没有响应(或者响应超时。) 服务器中的java版本1.8  与win中的java环境一样。 请问谁遇到过类似问题,帮忙解答一下,谢啦

回答 xmxmyoyo
采纳率0%
27天前
  • 5

    回答

  • 21

    浏览

在mian.py中的参数配置 pymysql.install_as_MySQLdb() app = Flask(__name__, template_folder='template', static_url_path='/', static_folder='resource') app.config['SECRET_KEY'] = os.urandom(24) app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:123456@localhost:3306/woniunote' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False # 再实例化对象 db = SQLAlchemy(app)   再对dbsession matedata , DBase 封装一下, 方便在 后面使用 from sqlalchemy import MetaData from main import db def dbconnect(): dbsession = db.session # 简化操作 metadata = MetaData(bind=db.engine) DBase = db.Model return dbsession, metadata, DBase   在M层的调用代码如下 dbsession, md, DBase = dbconnect() class Article(DBase): __table__ = table('article', md, autoload=True)   以上步骤和网课一样, 为什么 出现了'MetaData' object has no attribute 'table 的问题?  

  • 0

    回答

  • 13

    浏览

在一个项目中,数据库会存有多个邮箱的信息,而运行的接口会经常调用到两个方法: 一个是使用 smtp 连接遍历的邮箱去发送邮件, 一个是使用 imap 遍历数据库的邮箱去获取邮件, 现在出现的问题是: 当从数据库中获取到的邮箱是国外的邮箱时,比如 gmail 邮箱,那么在发送跟获取邮件时总是会超时报错;而国内的正常。 现在准备把项目部署到两个服务器,一个国内,一个国外。 请问有什么方法,可以判断当接口中调用发送或获取邮件的方法使用的是国外邮箱时,自动选择运行国外的服务器,而当判断到是国内邮箱时,自动运行国内的服务器去执行代码。 有没有这种解决的方法或者可以进行其它配置去解决”当遍历运到国外邮箱超时报错“ 的问题,谢谢

  • 1

    回答

  • 46

    浏览

使用 smtplib.SMTP 587端口 或者 smtplib.SMTP_SSL 465端口 去连接 gmail邮箱时,总是超时,有没有什么解决方法

回答 F_iy002
采纳率0%
25天前
  • 1

    回答

  • 34

    浏览

flask中sqlalchemy中向我这样连接数据库后,怎么样用session.query的方法查询 数据库test10中表avg_money_city里的avg_money数值

qq_45971013
采纳率66.7%
24天前
  • 3

    回答

  • 45

    浏览

if debug: bgr = tf.Print(bgr, [tf.shape(bgr)], message='Shape of input image: ', summarize=4, first_n=1)

  • 2

    回答

  • 41

    浏览

Traceback (most recent call last): File "C:/Users/86183/Desktop/边界正则化深度学习编解码网络/tensorflow-fcn-master/test_fcn8_vgg.py", line 45, in <module> vgg_fcn.build(batch_images, debug=True) File "C:\Users\86183\Desktop\边界正则化深度学习编解码网络\tensorflow-fcn-master\fcn8_vgg.py", line 72, in build summarize=4, first_n=1) File "D:\Anacoda\Anacoda\envs\tensorflow\lib\site-packages\tensorflow\python\util\dispatch.py", line 201, in wrapper return target(*args, **kwargs) File "D:\Anacoda\Anacoda\envs\tensorflow\lib\site-packages\tensorflow\python\ops\logging_ops.py", line 267, in print_v2 raise ValueError("Unrecognized keyword arguments for tf.print: %s" % kwargs) ValueError: Unrecognized keyword arguments for tf.print: {'message': 'Shape of input image: ', 'first_n': 1} 我看有的说是参数问题 具体我也很懵 求大佬赐教

回答 慕独慕你
采纳率50%
21天前
  • 4

    回答

  • 21

    浏览

app=Flask('__name__')   @app.route('/') def index():     return render_template('first.html')   @app.route('/<render>') def index0(render):     return render_template('render.html')   @app.route('/<beijing>') def index1(beijing):     return render_template('beijing.html')   @app.route('/<anhui>') def index2(anhui):     return render_template('anhui.html') if __name__=='__main__':     app.run(debug=True) 出来的所有页面结果都是render.html页面,这是怎么回事?

  • 1

    回答

  • 17

    浏览

为什么数据库MySQL有时要自己启动呢,甚至会丢失数据库。 之前是因为mamp的影响,断开连接后,使用net start mysql80数据库服务MySQL80可以启动; 后来发现数据库无法登录,卸载了mamp后发现还不行,然后services.msc自己手动启动MySQL80,数据库才正常可以找到之前的数据库。。。

  • 0

    回答

  • 10

    浏览

使用 腾讯云服务器 centos8 系统  python3.6.8  搭建2.0 的 以图搜图, 按照官网 milvus1.0 和 客户端 服务  使用docker部署完成 操作教程地址: https://github.com/milvus-io/bootcamp/tree/1.0/solutions/image_search2 查询服务也启动了 但还是连接不上客户端, 查询服务器启动所用 的第三方模块 使用的是demo 里面推荐的版本

  • 5

    回答

  • 23

    浏览

初学数据库,遇到如下问题不知道该怎么解决,求大佬帮助! sqlalchemy.exc.ProgrammingError: (mysql.connector.errors.ProgrammingError) 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)  

  • 3

    回答

  • 25

    浏览

  <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>管理后台</title> <link href="{{ buildStaticUrl('/bootstrap/bootstrap.min.css') }}" rel="stylesheet"> <link href="{{ buildStaticUrl('/font-awesome/css/font-awesome.min.css') }}" rel="stylesheet"> <link href="{{ buildStaticUrl('/css/style.css') }}" rel="stylesheet"> {%block css %}{% endblock %} <body> <div id="wrapper"> <nav class="navbar-default navbar-static-side" role="navigation"> <div class="sidebar-collapse"> <ul class="nav metismenu" id="side-menu"> <li class="nav-header"> <div class="profile-element text-center"> <img alt="image" class="img-circle" width="80px" height="80px" src="{{ buildStaticUrl('/images/common/myavatar.png') }}"/> <p class="text-muted" style="padding-top: 15px;">亚飞编程</p> </div> <div class="logo-element"> <img alt="image" class="img-circle" src="{{ buildStaticUrl('/images/common/logo.png') }}"/> </div> </li> <li class="default"> <a href="{{ buildUrl('/') }}"><i class="fa fa-dashboard fa-lg"></i> <span class="nav-label">仪表盘</span></a> </li> <li class="account"> <a href="{{ buildUrl('/account/index') }}"><i class="fa fa-user fa-lg"></i> <span class="nav-label">账号管理</span></a> </li> <li class="food"> <a href="{{ buildUrl('/food/index') }}"><i class="fa fa-book fa-lg"></i> <span class="nav-label">美餐管理</span></a> </li> <li class="member"> <a href="{{ buildUrl('/member/index') }}"><i class="fa fa-group fa-lg"></i> <span class="nav-label">会员列表</span></a> </li> <li class="finance"> <a href="{{ buildUrl('/finance/index') }}"><i class="fa fa-rmb fa-lg"></i> <span class="nav-label">财务管理</span></a> </li> <li class="stat"> <a href="{{ buildUrl('/stat/index') }}"><i class="fa fa-bar-chart fa-lg"></i> <span class="nav-label">统计管理</span></a> </li> </ul> </div> </nav> <div id="page-wrapper" class="gray-bg" style="background-color: #ffffff;"> <div class="row border-bottom"> <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0"> <div class="navbar-header"> <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="javascript:void(0);"><i class="fa fa-bars"></i> </a> </div> <ul class="nav navbar-top-links navbar-right"> <li> <span class="m-r-sm text-muted welcome-message"> 欢迎使用亚飞编程订餐管理管理后台 </span> </li> <li class="dropdown user_info"> <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);"> <img alt="image" class="img-circle" src="{{ buildStaticUrl('/images/common/mylogo.jpg') }}"/> </a> <ul class="dropdown-menu dropdown-messages"> <li> <div class="dropdown-messages-box"> 姓名: {{ current_user.nickname }}<a href="{{ buildUrl('/user/edit') }}" class="pull-right">编辑</a> </div> </li> <li class="divider"></li> <li> <div class="dropdown-messages-box"> 手机号码:{{ current_user.mobile }} </div> </li> <li class="divider"></li> <li> <div class="link-block text-center"> <a class="pull-left" href="{{ buildUrl('/user/reset-pwd') }}"> <i class="fa fa-lock"></i> 修改密码 </a> <a class="pull-right" href="{{ buildUrl('/user/logout') }}"> <i class="fa fa-sign-out"></i> 退出 </a> </div> </li> </ul> </li> </ul> </nav> </div> {% block content %}{% endblock %} </div> </div> <div class="hidden hidden_layout_wrap"> <input name="domain" value="{{ config.APP.domain }}"> <input name="prefix_url" value="{{ config.UPLOAD.prefix_url }}"> </div> <script src="{{ buildStaticUrl('/plugins/jquery-2.1.1.js') }}"></script> <script src="{{ buildStaticUrl('/bootstrap/bootstrap.min.js') }}"></script> <script src="{{ buildStaticUrl('/plugins/layer/layer.js') }}"></script> <script src="{{ buildStaticUrl('/js/common.js') }}"></script> {%block js %}{% endblock %} </body> </html>  

回答 freedom8991
采纳率100%
18天前
  • 1

    回答

  • 46

    浏览

最近在flask中调用keras加载模型,并用模型进行预测model.predict时报错,报错的地方就是model.predict,而模型是可以正常载入的 AttributeError: '_thread._local' object has no attribute 'value' 我使用的TensorFlow版本为2.1.0,keras版本为2.3.1,flask版本为1.1.1 应该是线程的问题,但是我看网上的解决方法都是TensorFlow1.x的版本下的方法,大多都是说将降版本,有没有不降版本的方法  

  • 3

    回答

  • 31

    浏览

有什么办法可以在python中用flask调用自己之前的一个py文件,然后在浏览器中展现

回答 空的王座
采纳率100%
13天前
  • 1

    回答

  • 19

    浏览

代码: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'nihao,shijie!' if __name__=='__main__': app.run() 运行结果: runfile('C:/Users/25929/Desktop/untitled0.py', wdir='C:/Users/25929/Desktop') * Serving Flask app "untitled0" (lazy loading) * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) edge界面: 嗯… 无法访问此页面127.0.0.1 已拒绝连接。 请尝试: 检查连接 检查代理和防火墙 ERR_CONNECTION_REFUSED 题主刚开始学不懂这些东西,请问这个该如何处理。

回答 dyhelloworld
采纳率75%
12天前
  • 5

    回答

  • 30

    浏览

代码: from flask import Flask app=Flask(__name__) @app.route('/') def hello():     return 'hello world' if __name__=="__main__":     app.run()     输出: Traceback (most recent call last):   File "C:/Users/master/Desktop/aa.py", line 1, in <module>     from flask import Flask   File "C:\Users\master\AppData\Local\Programs\Python\Python39\flask.py", line 2, in <module>     app=Flask(__name__) NameError: name 'Flask' is not defined

  • 3

    回答

  • 24

    浏览

营销短信怎么才能不被拦截-求解 营销短信怎么才能不被拦截-求解  营销短信怎么才能不被拦截-求解 

  • 4

    回答

  • 40

    浏览

新手,在用flask做一个小小的项目,遇到了难题,就是我后端往前端传值,从接口里获取的值传到前台却不显示,f12显示是有接收到的,但就是不忘页面上渲染,可如果我直接把值定死的话,就可以显示出来,这到底是是什么问题,求大佬帮忙      从接口接收值 后台代码: from flask import Flask,render_template,request import requests app = Flask(__name__) app.debug = True key = "1ee7102878b94eb78ee10fa496729c10" @app.route('/',methods=["GET","POST"]) def home(): province = request.form.get("province") city = request.form.get("city") data = { "city": city, "province": province } return render_template("home.html", **data) if __name__ == '__main__': app.run() 前台代码: <div class="search"> <form action="/home" method="POST" id="form"> <input type="text" name="province" class="keywords" placeholder="输入要搜索的省"> <input type="text" name="city" class="keywords" placeholder="输入要搜索的市"> <button class="search-btn" type="submit"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button> </form> <span class="sm-title">{{ city }}</span> <p class="city-search"><b>{{ province }}</b><span id="btn-search" class="glyphicon glyphicon-search" aria-hidden="true"></span></p> </div> 运行结果: f12:   自己设定值 后端代码: from flask import Flask,render_template,request import requests app = Flask(__name__) app.debug = True key = "1ee7102878b94eb78ee10fa496729c10" @app.route('/',methods=["GET","POST"]) def home(): province = "山西省" city = "运城市" data = { "city": city, "province": province } return render_template("home.html", **data) if __name__ == '__main__': app.run(debug=True) 前端代码无变化 运行结果:

  • 1

    回答

  • 10

    浏览

本来打开好好的,结果不知道点了什么,突然就这样了。好像是默认打开文件方式错了。请问如何改回去??

  • 2

    回答

  • 15

    浏览

自觉python,使用flask做后台,用于产生一个随机数组,目的是传到html中的echarts中去,使图表动起来,关键代码如下 : FLASK: @app.route('/',methods=["get","post"]) def hello_world(): x = [] x = utils.xiaoliang() time.sleep(1) print(x) return render_template("index.html",x=x) HTML: <div id="main" style="width: 600px;height:400px;"></div> <script type="text/javascript"> // 基于准备好的dom,初始化echarts实例 var myChart = echarts.init(document.getElementById('main')); // 指定图表的配置项和数据 var option = { title: { text: '测试' }, tooltip: {}, legend: { data: ['销量'] }, xAxis: { data: ["1月", "2月", "3月", "4月", "5月", "6月"] }, yAxis: {}, series: [{ name: '销量', type: 'bar', data: [199, 73, 78, 64, 73, 83] { }] }; // 使用刚指定的配置项和数据显示图表。 myChart.setOption(option); function getCharts() { $.ajax( { url: "/", type: "get", success: function (data) { myChart.setOption({ series: [{ data: {{ x|tojson }} }] }) } }) } setInterval(getCharts,1000)   遇到问题是打开后开始会显示[199, 73, 78, 64, 73, 83] 这个数组的内容,过一秒后显示随机产生的{{ x|tojson }}这个内容,我的目标是每过一秒就产生一组随机数并显示,但是 setInterval(getCharts,1000) 好像只运行了一次。 请问这个是哪里出了问题    

回答 xyzivan
采纳率50%
昨天
  • 0

    回答

  • 5

    浏览

为什么虚拟环境成功创建,但列出来的只有一个?谢谢 (base) E:\python练习\exflask>lsvirtualenv dir /b /ad "C:\Users\17385\Envs" ============================================================================== py37

  • 1

    回答

  • 13

    浏览

问题如标题,我用flask加websocket结合前端做了一个向前端实时推送数据的程序。但是我后续发现,前端的访问,同一时间只能支持一个访问。但是我需要能够在同一个时间能支持多个访问。一直没想出解决办法。特来请教。 后端部分:   from flask import Flask,render_template,request from flask_sockets import Sockets import datetime import time from gevent import pywsgi from geventwebsocket.handler import WebSocketHandler app = Flask("__name__") app.debug = True sockets = Sockets(app) """ 主界面 """ @app.route("/") def index(): return render_template("text62.html") """ websocket """ @sockets.route("/main") def cs(ws): if request.environ.get('wsgi.websocket'): ws = request.environ['wsgi.websocket'] # websocket对象 x = 0 while 1: x+=1 if not ws.closed: try: ws.send(str(x)) except(IndexError): pass time.sleep(1) if __name__ == "__main__": ip=('127.0.0.1',8888) server = pywsgi.WSGIServer(ip,application=app,handler_class=WebSocketHandler) print(ip[0]+":"+f"{ip[1]}") server.serve_forever() 前端部分: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>text</title> </head> <body> <div id="one"></div> <script> let ws = new WebSocket("ws://localhost:8888/main"); ws.onmessage = function (event) { document.getElementById('one').innerHTML = event.data; }; </script> </body> </html>  

  • 1

    回答

  • 6

    浏览

写了一个nlp的程序,使用了python,flask框架,前端是h5写的。 不知道问题到底出在哪里,每次页面切换的时候都会显示这个问题 页面跳转使用的是(以下面代码为例): render_template('index.html', result=result, user=user) 大体的前后端交互类似于下方的代码,但是这个方法无法响应 <form action="/{{result}}" method="post"> <input type="button" value="下载结果"> </form> #python代码 @app.route('/<result>',methods=['POST']) def download(result): print("yes") # 用时间作为文件名 now = datetime.datetime.now() t = now.strftime("%Y-%m-%d %H:%M:%S") tn = t + '.txt'; # 保存文件 print("file") f = open(tn, mode='w'); f.write(result); f.close(); win32api.MessageBox(0, "下载成功!", "Message", win32con.MB_OK) 求大神指教

  • 3

    回答

  • 19

    浏览

[{ "_id": "886132ea6b0947c19faa5bf650d77326", "next_run_time": 1620552240, "job_state": BinData(0,"gASVyAEAAAAAAAB9lCiMCGV4ZWN1d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JpZ2dlcpSMGWFwc2NoZWR1bGVyLnRyaWdnZXJzLmRhdGWUjAtEYXRlVHJpZ2dlcpSTlCmBlH2UKIwIcnVuX2RhdGWUaBJDCgflBQkRDjgAMmeUaBqGlFKUaANLAXVijARmdW5jlIwQX19tYWluX186c2VuZG1zZ5SMAmlklIwgYjZhYjVkNDcwMjRkNGJjOTkwYmY3YTcwZGNhYzY5NDGUdS4=") },{ "_id": "4df49cc1bcd442509e0bcb5da92c114f", "next_run_time": 1620552240, "job_state": BinData(0,"gASVyAEAAAAAAAB9lCiMCGV4ZWN1dG9ylIwHZGVmYXVsdJSMB3ZlcnNpb26USwGMEm1pc2ZpcmVfZ3JhY2VfdGltZZRLHowEYXJnc5R9lCiMAnRvlIwLV2FuZ01pbmdMZWmUjANtc2eUjB3nnIvnnIvnnIsgMjAyMS0wNS0wOSAxNzoyNDo1N5R1hZSMDW1heF9pbnN0YW5jZXOUSwOMBmt3YXJnc5R9lIwNbmV4dF9ydW5fdGltZZSMCGRhdGV0aW1llIwIZGF0ZXRpbWWUk5RDCgflBQkRGAAAAACUjARweXR6lIwCX3CUk5QojA1Bc2lhL1NoYW5naGFplE2AcEsAjANDU1SUdJRSlIaUUpSMCGNvYWxlc2NllImMBG5hbWWUjAdzZW5kbXNnlIwHdHJpZ2dlcpSMGWFwc2NoZWR1bGVyLnRyaWdnZXJzLmRhdGWUjAtEYXRlVHJpZ2dlcpSTlCmBlH2UKIwIcnVuX2RhdGWUaBJDCgflBQkRDjkDYZKUaBqGlFKUaANLAXVijARmdW5jlIwQX19tYWluX186c2VuZG1zZ5SMAmlklIwgNGRmNDljYzFiY2Q0NDI1MDllMGJjYjVkYTkyYzExNGaUdS4=") },{ "_id": "f8d2e3afc18d4543a9738ee90ca3e8ef", "next_run_time": 1620552240, "job_state": BinData(0,"gASVyAEAAAAAAAB9lCiMCGV4ZWN1dG9ylIwHZGVmYXVsdJSMB3ZlcnNpb26USwGMEm1pc2ZpcmVfZ3JhY2VfdGltZZRL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dlcpSTlCmBlH2UKIwIcnVuX2RhdGWUaBJDCgflBQkRDjsJ1byUaBqGlFKUaANLAXVijARmdW5jlIwQX19tYWluX186c2VuZG1zZ5SMAmlklIwgYWUxNjQ1MDZhMWUzNDE1Nzk1MGI1OGJiZTI3YzFiNjeUdS4=") },{ "_id": "0cd92a166f07456c840462a4da5c9df3", "next_run_time": 1620552240, "job_state": BinData(0,"gASVyAEAAAAAAAB9lCiMCGV4ZWN1dG9ylIwHZGVmYXVsdJSMB3ZlcnNpb26USwGMEm1pc2ZpcmVfZ3JhY2VfdGltZZRLHowEYXJnc5R9lCiMAnRvlIwLV2FuZ01pbmdMZWmUjANtc2eUjB3nnIvnnIvnnIsgMjAyMS0wNS0wOSAxNzoyNDo1NJR1hZSMDW1heF9pbnN0YW5jZXOUSwOMBmt3YXJnc5R9lIwNbmV4dF9ydW5fdGltZZSMCGRhdGV0aW1llIwIZGF0ZXRpbWWUk5RDCgflBQkRGAAAAACUjARweXR6lIwCX3CUk5QojA1Bc2lhL1NoYW5naGFplE2AcEsAjANDU1SUdJRSlIaUUpSMCGNvYWxlc2NllImMBG5hbWWUjAdzZW5kbXNnlIwHdHJpZ2dlcpSMGWFwc2NoZWR1bGVyLnRyaWdnZXJzLmRhdGWUjAtEYXRlVHJpZ2dlcpSTlCmBlH2UKIwIcnVuX2RhdGWUaBJDCgflBQkRDjYG0SyUaBqGlFKUaANLAXVijARmdW5jlIwQX19tYWluX186c2VuZG1zZ5SMAmlklIwgMGNkOTJhMTY2ZjA3NDU2Yzg0MDQ2MmE0ZGE1YzlkZjOUdS4=") }] job_state重复很多,所以想删除冗余只留一条,但因为是BinData格式所以不会搞了,求大神指点,如何python实现