2006年09月18日 星期一 13:38
lazz,您好! 是呀,handler_class=BaseHTTPServer.BaseHTTPRequestHandle传递了一个类,我要给这个类的子类初始化,怎么传递参数? 在 2006-09-18 10:00:00 您写道: >def run(server_class=BaseHTTPServer.HTTPServer, > handler_class=BaseHTTPServer.BaseHTTPRequestHandler): > server_address = ('', 8000) > httpd = server_class(server_address, handler_class) > httpd.serve_forever() > >在python的manual里的例子 >_______________________________________________ >python-chinese >Post: send python-chinese在lists.python.cn >Subscribe: send subscribe to python-chinese-request在lists.python.cn >Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn >Detail Info: http://python.cn/mailman/listinfo/python-chinese 致 礼! cry zyqmail在tom.com
Zeuux © 2025
京ICP备05028076号