Ver código fonte

上传文件至 'be'

pull/1/head
gitea.shuishan 3 anos atrás
pai
commit
263c35cd2d
1 arquivos alterados com 5 adições e 5 exclusões
  1. +5
    -5
      be/app.py

+ 5
- 5
be/app.py Ver arquivo

@ -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()

Carregando…
Cancelar
Salvar