Quellcode durchsuchen

上传文件至 'be'

pull/1/head
gitea.shuishan vor 3 Jahren
Ursprung
Commit
263c35cd2d
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. +5
    -5
      be/app.py

+ 5
- 5
be/app.py Datei anzeigen

@ -44,11 +44,11 @@ def get_problem_description(_id: str):
"from problem where id = %d" % int(_id))
des = cursor.fetchone()
# print(des)
title = '<div><strong style="font-size:22px">%s. %s</strong></div><br/>' % (_id, des[0])
description = '<div><strong style="font-size:20px">Description</strong></div><div>%s</div><br/>' % des[1]
input_description = '<div><strong style="font-size:20px">Input Description</strong></div><div>%s</div><br/>' \
title = '<div><strong style="font-size:22px;color:blue;">%s. %s</strong></div><br/>' % (_id, des[0])
description = '<div><strong style="font-size:20px;color:blue;">Description</strong></div><div>%s</div><br/>' % des[1]
input_description = '<div><strong style="font-size:20px;color:blue;">Input Description</strong></div><div>%s</div><br/>' \
% des[2]
output_description = '<div><strong style="font-size:20px">Output Description</strong></div><div>%s</div><br/>' \
output_description = '<div><strong style="font-size:20px;color:blue;">Output Description</strong></div><div>%s</div><br/>' \
% des[3]
samples = json.loads(des[-1].replace("\n", "\\n"))
samples_html = ''
@ -114,4 +114,4 @@ def submit():
if __name__ == '__main__':
app.run(host='0.0.0.0')
app.run()

Laden…
Abbrechen
Speichern