Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

simple flask hello world

from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello_world():
    return "<p>Hello, World!</p>"

if __name__ == "__main__":
	app.run(debug=True)
Comment

flask hello world

from flask import Flask

app = Flask(__name__)

@app.route('/')
def index():
    return 'Web App with Python Flask!'

app.run(host='0.0.0.0', port=81)
Comment

hello world flask python

from flask import Flask
app = Flask(__name__)

@app.route("/")
def index():
    return 'Hello World'

if __name__ == '__main__':
    app.run(debug=True)
Comment

PREVIOUS NEXT
Code Example
Python :: pygame scale image python 
Python :: change pyplot dpi 
Python :: python windows get file modified date 
Python :: is pythin a real coding language 
Python :: jupyter notebook no password or token 
Python :: conda requests 
Python :: python open web browser 
Python :: get terminal size python 
Python :: dotenv python 
Python :: python measure time 
Python :: python clear console 
Python :: how to get micro symbol in python 
Python :: python main 
Python :: round python with list 
Python :: how to add legend to python plot 
Python :: matplotlib.pyplot imshow size 
Python :: deleting all rows in pandas 
Python :: python check if folder exists 
Python :: how to import pygame onto python 
Python :: pygame rect collisions 
Python :: convert numpy to torch 
Python :: record the amount of time ittales for code to run python 
Python :: plot to image python 
Python :: divide by zero error python exception handling 
Python :: clear terminal in python 
Python :: python find smallest element in dictionary 
Python :: python get absolute path of file 
Python :: Flask Gmail 
Python :: check numpy version 
Python :: django create empty migration 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =