http.server only exists in Python 3. In Python 2, you should use the BaseHTTPServer module:
from BaseHTTPServer import BaseHTTPRequestHandler
should work just fine.
so if you run in py3 is ok
在Python 3.x中,BaseHTTPServer, SimpleHTTPServer, CGIHTTPServer整合到http.server包,SocketServer改名为socketserver,请注意查阅官方文档。