当前位置: 首页 > 后端技术 > Python

下一代Python异步web框架

时间:2023-03-25 22:05:05 Python

使用方法importwebclassUserModel(web.Model):username:strpassword:strclassIndex:asyncdefget(self,name):returnf"Hello,{name}!"如果__name__=='__main__':urls={"/{name}",Index,"/users",UserModel,}app=web.Application(urls)app.run()