pip install bottle
python
from bottle import Bottle, route, run, template
python
app = Bottle()
python
@app.route('/')
def home():
@app.route('/about')
def about():
python
if __name__ == '__main__':
run(app, host='localhost', port=8080)
python
from bottle import Bottle, route, run, template
app = Bottle()
@app.route('/')
def home():
@app.route('/about')
def about():
if __name__ == '__main__':
run(app, host='localhost', port=8080)