#!/usr/bin/env python

# from http://flask.pocoo.org/ tutorial

from flask import Flask
app = Flask(__name__)

@app.route("/") # take note of this decorator syntax, it's a common pattern
def hello():
    return "Hello World!"

if __name__ == "__main__":
    app.run()

@@ -1,8 +1,32 @@
+# -*- coding: utf-8 -*-%0A
 #!/usr/b
@@ -143,10 +143,69 @@
 ute(
-%22/
+'/')%0Adef index():%0A    return %22Index Page%22%0A%0A@app.route(%22/hello
 %22) #
@@ -303,16 +303,521 @@
 orld!%22%0A%0A
+# variable rules%0A@app.route('/user/%3Cusername%3E')%0Adef show_user_profile(username):%0A    # show the user profile for that user%0A    return 'User %25s' %25 username%0A%0A@app.route('/post/%3Cint:post_id%3E')%0Adef show_post(post_id):%0A    # show the post with the given id, the id is an integer%0A    return 'Post %25d' %25 post_id%0A%0A# Unique URLs / Redirection Behavior%0A%0A# %E8%BF%99%E7%A7%8D%E5%8F%AF%E4%BB%A5%E5%85%BC%E5%AE%B9url%E6%9C%AB%E5%B0%BE%E5%B8%A6%E4%B8%8D%E5%B8%A6/, %E9%83%BD%E4%BC%9A%E7%94%A8%E5%B8%A6/%E7%9A%84%0A@app.route('/projects/')%0Adef projects():%0A    return 'The project page'%0A%0A@app.route('/about')%0Adef about():%0A    return 'The about page'%0A%0A
 if __nam
@@ -838,16 +838,18 @@
 __%22:%0A   
+ #
  app.run
@@ -851,8 +851,57 @@
 p.run()%0A
+    app.debug = True%0A    app.run(host='0.0.0.0')%0A

update hello