flask的基础功能整合
URL的动态构建接口模块:# 个人中心@app.route('/panel/<username>')def panel(username): """ URl的动态构建: 在调用接口的页面中,如:"url_for('panel', username="jackson")" :param username: :return: """ user = {"username": username, "email": "123@qq.com"}
原创
2021-03-24 15:28:50 ·
256 阅读 ·
1 评论