Created
June 25, 2015 15:14
-
-
Save oxalorg/e7dc40a099bad92fb752 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/<int:x>-<int:y>") | |
def sum(x,y): | |
return ("Sum of x + y = " + str(x+y)) | |
if __name__ == '__main__': | |
app.debug = True | |
app.run(host="127.0.0.1", port=8800) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment