更改为
response=self.app.post('/test_function', data=json.dumps(dict(foo='bar')), content_type='application/json')
上一篇 在更新时显示从Flask视图流式传输的数据
下一篇 使用python
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号