1

我是 python 新手,也是 web 开发新手。我在 http.server 模块的帮助下制作了一个 Python Web 应用程序,并在 localhost 端口上运行它。它在 localhost:abcd 工作正常。

现在我想在一些公共服务器上运行它,比如 pythonanywhere 或 heroku!但是不知道服务器地址和端口是什么。

我需要帮助。提前致谢。

4

1 回答 1

1

在 PythonAnywhere 上,您可以在 your-username.pythonanywhere.com 上获得一个 Web 应用程序,该应用程序在端口 80 上运行——因此您只需在浏览器 URL 栏中键入http://your-username.pythonanywhere.com/即可访问它。

于 2013-03-07T13:29:08.353 回答