Flask 之 Hello World

Jul 9, 2016 19:40 · 30 words · 1 minute read

    from flask import Flask
    app = Flask(__name__)
    
    @app.route('/wget/<url>')
    def wget(url):
        # show the user profile for that user
        return "The Url is %s" % url
    
    if __name__ == "__main__":
        app.run()