I'm pretty sure you can't have a webserver using sockets and select() on one line of code. Not even using semicolons, you'd have to have some loops and control structures.
Are you sure this isn't what you are looking for?
$ python -m SimpleHTTPServer 8000
Serving HTTP on 0.0.0.0 port 8000 ...
Python 3 version: python -m http.server 8000
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…