[TypeError("'numpy.int64' object is not iterable"),最终发现是因为python3中没有int64类型,只有int类型,而上面截图中?{'id': 0, 'type': 21中的0和21都是int64类型的,解决方法就是把这两个转换成int类型,然后错误解决。 bug2---"msg": "value is not a valid dict", 1 2 3 4 5 6 7 8 9...
· fastapi最简单使用示例 · fastapi报错TypeError("'numpy.int64' object is not iterable"解决 · fastapi uvicorn 多进程处理 · FastAPI初体验 · FastAPI之阻塞式io和非阻塞式io 阅读排行: · 三维装箱问题(3D Bin Packing Problem, 3D-BPP) · Windows上,10分钟构建一个本地知识库 · dotnet...
uvicorn.run(app="fastapi_test:app", host='0.0.0.0', port=6009, workers=3)#fast_test表示文件名,worker=3表示你的服务开了三个,fastapi会自动转发 到这3个服务上进行处理。#此处的fastapi的版本是0.83.0