【发布时间】:2016-04-05 00:23:12
【问题描述】:
有没有办法让我的网站可以通过我连接的网络访问?
from bottle import route, run, template
@route('/hello/<name>')
def index(name):
return template('<b>Hello {{name}}</b>!', name=name)
run(host='localhost', port=8080)
【问题讨论】:
-
试试
run(host='0.0.0.0', port=8080)。详情在这里:serverfault.com/questions/78048/…
标签: python web network-programming bottle