test-area/würfel/app.py

15 lines
329 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from flask import Flask, render_template
import simulation # < eigene Logik einbinden
app = Flask(__name__)
@app.route('/')
def index():
zahl = simulation.würfeln()
return render_template('index.html', zahl=zahl)
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000, debug=True, use_reloader=False)