python fastapi 搭建服务器

host如果想让非本机访问,需要将host设置为:0.0.0.0

参考:

  1. https://fastapi.tiangolo.com/zh/advanced/ 官方文档

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注