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 :: greeper 
Python :: rerun file after change python 
Python :: print progress without next line python 
Python :: how to move your cursor using python 
Python :: python read column from csv 
Python :: pyspark min column 
Python :: requests post with headers python 
Python :: pandas drop rows with empty list 
Python :: discord embed add image 
Python :: python class tostring 
Python :: how to download a file in python using idm 
Python :: numpy multidimensional indexing 
Python :: create spark dataframe in python 
Python :: how to get the year in python 
Python :: keras read image 
Python :: how to add special token to bert tokenizer 
Python :: How can one find the three largest values of an input array efficiently, namely without having to sort the input array? 
Python :: remove duplicates based on two columns in dataframe 
Python :: plt.figure resize 
Python :: python get the key with the max or min value in a dictionary 
Python :: isprime in python 
Python :: python temporary files 
Python :: python truncate to integer 
Python :: sqlalchemy datetime default now create table 
Python :: python read live radio 
Python :: show number as 3 digit python 
Python :: ses mail name 
Python :: python overwrite print on same line 
Python :: text to pandas 
Python :: python file name from absolute path 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =