from start import app if __name__ == "__main__": app.run()
from start import app as application if __name__ == "__main__": application.run()
def runserver(): """Start Flask’s built-in server""" app.run()
import os from start import app if __name__ == '__main__': app.debug = True host = os.environ.get('IP', '127.0.0.1') port = int(os.environ.get('PORT', 5000)) app.run(host=host, port=port)
r = {'resultado': x.divisao()} return jsonify(r) elif m == "multiplicacao": r = {'resultado': x.multiplicacao()} return jsonify(r) elif m == 'soma': r = {'resultado': x.soma()} return jsonify(r) elif m == 'sub': r = {'resultado': x.sub()} return jsonify(r) elif request.method == 'GET': return "FACA UM POST PARA USAR A CALCULADORA" else: return "Defina uma operacao basica" app.run(debug=True)
from start import app if __name__ == "__main__": app.run(host='127.0.0.1')