The answer is provided when you start the server. In the same directory where you have your HTML file, start the server:
$ python -m http.server
Serving HTTP on 0.0.0.0 port 8000 ...
(Or, the Python2 incantation)
$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
In this message, Python tells you the IP address (0.0.0.0) and the port number (8000).
So, if the file is named d3_template.html, you can get to this page via http://0.0.0.0:8000/d3_template.html
On most machines you should also be able to use
http://localhost:8000/d3_template.html
or
http://127.0.0.1:8000/d3_template.html
If you get an error like this:
socket.error: [Errno 48] Address already in use
You want to use a different port:
$ python -m http.server 8888
And to load the file:
http://0.0.0.0:8888/d3_template.html
To understand why all of these work, you'd want to learn a fair bit about networking (ports, DNS, loopback interface, how multiple network cards behave on the same machine and, if things aren't working as expected, firewalls, restricted ports and who knows what else).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…