• 用python开发了一个简单apache web服务端范例,在win10 + apache2.4.9 + python3.5 测试成功


    #!D:ProgramsPythonPython35-32python.exe


    import cgi


    def htmlTop():
        print("Content-type: text/html ")
        print()
        print("""<!DOCTYPE html>
            <html lang="en">
                <head>
                        <meta charset="utf-8"/>
                        <title>python 服务端测试</title>
                </head>
                <body>""")


    def htmlTail():
        print("""</body>
        </html>""")


    if __name__ == "__main__":
        try:
            htmlTop()
            print("Hello World")
            htmlTail()
        except:
            cgi.print_exception()


    文件 https://pan.baidu.com/s/1gfLSXLx 是我编译的apache2.4.9 fcgid module


    在win10 + apache2.4.9 + python3.5 测试成功

  • 相关阅读:
    网页尺寸scrollHeight
    浏览器窗口可视区域大小
    创建文本节点createTextNode
    创建元素节点createElement
    faster rcnn需要理解的地方
    3d点云
    多维的vector定义和初始化
    写代码的可扩展性
    1111
    tmux命令
  • 原文地址:https://www.cnblogs.com/bdccloudy/p/7665268.html
Copyright © 2020-2023  润新知