update
This commit is contained in:
		
							
								
								
									
										15
									
								
								2024.02.26_flask_example/my_flask_app/flask_app.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								2024.02.26_flask_example/my_flask_app/flask_app.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| from flask import Flask, render_template | ||||
|  | ||||
| app = Flask(__name__) | ||||
|  | ||||
| @app.route('/') | ||||
| def index(): | ||||
|     return render_template('index.html') | ||||
|  | ||||
| @app.route('/about') | ||||
| def about(): | ||||
|     name = 'Guan' | ||||
|     return render_template('about.html', name=name) | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|     app.run(debug=True) | ||||
		Reference in New Issue
	
	Block a user