Replies: 1 comment
-
收到,感谢你的提议,已采纳 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
不去掉html标签的话,人眼看输出的网页是没问题,但是到了tvbox里,会滚动header,等不到更新时间出来,菜单就自动隐藏掉了。
亲测有效
from flask import Flask, render_template_string,make_response
def show_txt():
ret = get_result_file_content(file_type="txt")
response = make_response(ret)
response.mimetype = 'text/plain'
return response
Beta Was this translation helpful? Give feedback.
All reactions