File size: 365 Bytes
d7c78d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python
# coding: utf-8

# In[1]:


get_ipython().system('pip install flask')
from flask import Flask, request

app = Flask(__name__)

@app.route('/add', methods=['GET'])
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[ ]: