美文网首页python交流学习
python中的Dynamic Form

python中的Dynamic Form

作者: 78c40b03ee4e | 来源:发表于2019-03-07 20:56 被阅读0次

前言

Dynamic Form 是一个 Python 的请求抽象库,让你编写可在多个 Python Web 框架下运行的请求处理器,可以创建页面和应用无需关心所用框架。此外它让 AJAX 变得简单。

示例代码:

from DynamicForm.RequestHandler import RequestHandler
from DynamicForm.HTTP import Request

class HelloWorld(RequestHandler):
    def renderResponse(self, request):
        return "Hello World!"

### -------- Code to create a fake request to test the request handler ------- ###

helloWorld = HelloWorld()
print helloWorld.handleRequest(Request()).content

小编推荐一个学python的学习qun 740,3222,34
无论你是大牛还是小白,是想转行还是想入行都可以来了解一起进步一起学习!裙内有开发工具,很多干货和技术资料分享!

素材来源于开源中国:侵删

相关文章

网友评论

    本文标题:python中的Dynamic Form

    本文链接:https://www.haomeiwen.com/subject/fzzhpqtx.html