#!/usr/bin/env python | |
# coding: utf-8 | |
# In[1]: | |
get_ipython().system('pip install flask') | |
from flask import Flask, request | |
app = Flask(__name__) | |
def add(): | |
a = request.args.get('a', type=int) | |
b = request.args.get('b', type=int) | |
return str(a + b) | |
if __name__ == '__main__': | |
app.run(debug=True) | |
# In[ ]: | |