Flask返回图片


Flask返回图片代码 @app.route("/api//status.png") def tmp_image_status(tmpid): online = play.get_tmp_online(str(tmpid)) if online == True: with open("static/images/online/online.png", 'rb') as bites: return send_f...
Flask返回图片代码 @app.route("/api//status.png") def tmp_image_status(tmpid): online = play.get_tmp_online(str(tmpid)) if online == True: with open("static...

Flask返回图片

Flask返回图片代码 @app.route("/api//status.png") def tmp_image_status(tmpid): online = play.get_tmp_online(str(tmpid)) if online == Tr...
阅读全文 0