Skip to content

Instantly share code, notes, and snippets.

@xiantail
Created December 25, 2015 05:35
Show Gist options
  • Save xiantail/3ad031b3cbab7f4e8096 to your computer and use it in GitHub Desktop.
Save xiantail/3ad031b3cbab7f4e8096 to your computer and use it in GitHub Desktop.
Introducing Python / Chapter 9
from bottle import route, run, static_file
@route('/')
def main():
return static_file('index.html', root='.')
run(host='localhost', port=9999)
My <b>new</b> and <i>improved</i> home page!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment