在Flask里怎么实现PUT和DELETE的http方法

慕桂英3389331
浏览 3067回答 1
1回答

浮云间

@route('/', methods=['GET', 'POST', 'PUT', 'DELETE'])def home():if request.method == 'GET':passelif request.method == 'POST':passelif request.method == 'PUT':passelif request.method == 'DELETE':pass
打开App,查看更多内容
随时随地看视频慕课网APP