Just started a thought, to use Python to make a Web server, show their own web page. So, I started my web server tour.
First, if you don't want to use Apache, IIS, you need an HTTP service, and Python comes with a simplehttpserver library to help you build an HTTP server. Of course, the library installation steps I will not write.
Where do you want to build your Web server in the file directory, you need to go into the directory using the CMD console, and then what? A soeasy step, the perfect implementation of the building.
Enter the following code in the command console:
80
Port number to see your needs, by default the port number is 8080. The console cannot be shut down and the service is stopped.
Then, if you have index.html in your directory, the page will appear.
Enter http://localhost:80/in the browser
The service is perfectly open.
Python3 using Simplehttpserver to build a Web server