no module named http.server

前端 未结 3 1361
南旧
南旧 2021-02-02 10:04

here is my web server class :

import http.server  
import socketserver

class WebHandler(http.server.BaseHTTPRequestHandler):

    def parse_POST(self):
                 


        
3条回答
  •  后悔当初
    2021-02-02 10:51

    In python earlier than v3 you need to run http server as

    python -m SimpleHTTPServer 8069 
    #(8069=portnumber on which your python server is configured)
    

提交回复
热议问题