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 :: tkinter label textvariable example 
Python :: how to convert string to function name in python 
Python :: python delete the last line of console 
Python :: check dictionary is empty or not in python 
Python :: show aruco marker axis opencv python 
Python :: image in tkinter 
Python :: pygame hide cursor 
Python :: foreign key constraint failed django 
Python :: how to set index pandas 
Python :: docker pyinstaller windowa 
Python :: get csrf_token value in django template 
Python :: python webdriver element not interactable 
Python :: pandas add column from list 
Python :: vscode not recognizing python import 
Python :: django password change view 
Python :: How to Copy a File in Python? 
Python :: how to convert string to date object in python 
Python :: pandas fill missing values with average 
Python :: python if not path exist make path 
Python :: how to reverse array in ruby 
Python :: python live radio 
Python :: how to create your own programming language in python 
Python :: read csv and set column name in pandas 
Python :: sorting pandas dataframe like excel 
Python :: python selenium get title 
Python :: remove duplicate rows in csv file python 
Python :: make longitude -180 to 180 
Python :: delete rows in dataframe pandas 
Python :: get path of notebook 
Python :: how to compare current date to future date pythono 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =