"python -m Simple HTTPServer" in python3

Asked 2 years ago, Updated 2 years ago, 35 views

In 2.x, I ran "python -m Simple HTTPServer" together, but I don't think it works in 3. How do I write in 3?

python python3

2022-09-21 17:30

1 Answers

python3 -m http.Must be written with server.

According to docs, the reason is:

From Python 3.0, http.server contains Simple HTTPServer. When converting code to 3.0, 2to3 tool automatically http.Import server.


2022-09-21 17:30

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.