Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

WARNING: This is a development server

from flask import Flask

app = Flask(__name__)

@app.route("/")
def index():
    return "<h1>Hello World!</h1>"

if __name__ == "__main__":
    from waitress import serve
    serve(app, host="0.0.0.0", port=8080)
Comment

PREVIOUS NEXT
Code Example
Python :: how to remove a list of numbers from a list in python 
Python :: how to make a timer using python 
Python :: condition in python 
Python :: close a file python 
Python :: delete from list in python 
Python :: Customize color stacked bar chart matplotlib 
Python :: python combinations 
Python :: how to convert pandas price column to integer 
Python :: Matplotlib add text to axes 
Python :: create python package 
Python :: python list index() 
Python :: string list to list 
Python :: python ascii to string 
Python :: web scraping using python code 
Python :: Detect Word Then Send Message (discord.py) 
Python :: list to dic 
Python :: from_bytes python 
Python :: python printing hello world 
Python :: python queue not empty 
Python :: move files in python 
Python :: python float range 
Python :: spacy get number of tokens 
Python :: django queryset multiple filters 
Python :: django form field add attrs 
Python :: discord.py events 
Python :: pandas filter column greater than 
Python :: chatterbot python 
Python :: use mark down with flask 
Python :: python strptime milliseconds 
Python :: how to find unique sublist in list in python 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =