Skip to content

Commit 9835768

Browse files
authored
更新 koh README.md
1 parent e820a20 commit 9835768

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

koh-python-nss_base/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ KOH题目是基于HTTP服务与后端评判系统进行交互的,故题目容器
99
### upload
1010

1111
```python
12-
python@app.route('/upload', methods=['POST'])
12+
@app.route('/upload', methods=['POST'])
1313
def upload():
14+
pass
1415
```
1516

1617
该路由负责接收用户上传的数据。数据将以表单数据的形式进行上传,参数名为file。
@@ -40,6 +41,7 @@ requests.post(f'http://{url}/upload', files={
4041
```python
4142
@app.route('/check', methods=['POST'])
4243
def check():
44+
pass
4345
```
4446

4547
当后端完成对/upload路由的访问且没有异常时,将访问/check路由。访问示例代码如下:

0 commit comments

Comments
 (0)