We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bd7f31 commit 6a04c0fCopy full SHA for 6a04c0f
main.py
@@ -18,8 +18,8 @@
18
if not os.path.exists('./static'):
19
os.makedirs('./static')
20
app.mount("/static", StaticFiles(directory="static"), name="static")
21
-index_html = open('templates/index.html', 'r').read()
22
-admin_html = open('templates/admin.html', 'r').read()
+index_html = open('templates/index.html', 'r', encoding='utf-8').read()
+admin_html = open('templates/admin.html', 'r', encoding='utf-8').read()
23
# 过期时间
24
exp_hour = 24
25
# 允许错误次数
0 commit comments