Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask, render_template
- app = Flask(__name__)
- @app.route('/')
- def webprint():
- return "<center><font size = '28pt'><h1>Hello world</h1></font></center>"
- @app.route('/profile/<name>')
- def profile(name):
- return render_template("profile.html", name=name, count=count)
- def counter(count):
- with open("visitors.txt","r+") as count:
- count = int("count") + 1
- return int("count")
- if __name__ == '__main__':
- app.run(debug=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement