Python beginners tried Hello World in 30 seconds using the micro-framework Flask

What is Flask

--Python micro web framework --Minimal functions provided as standard --For a full stack framework, like Django --Reference -Comparison of 4 Python Web Frameworks

about me

Python history

3 days

Reason for doing

looks fun

What i did

** ①Flask installation **

pip install Flask

** ② Create `` `hello.py``` in your favorite folder ** ** ③ Paste the following **

from flask import Flask
app = Flask(__name__)

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

if __name__ == '__main__':
    app.run()

** ④ Execution **

python hello.py

** ⑤ Access http://127.0.0.1:5000/ ** スクリーンショット 2019-12-02 20.00.33.png

reference

Flask

Recommended Posts

Python beginners tried Hello World in 30 seconds using the micro-framework Flask
cout << "Hello, World! \ N" in python
Hello World in Flask [Appropriate memo]
Python #Hello World for super beginners
Try using the Wunderlist API in Python
Tweet using the Twitter API in Python
I tried using Bayesian Optimization in Python
How to display Hello world in python
vprof --I tried using the profiler for Python
Try using the BitFlyer Ligntning API in Python
I tried simulating the "birthday paradox" in Python
I tried the least squares method in Python
Say hello to the world with Python with IntelliJ
I tried using the Datetime module by Python
Pre-process the index in Python using Solr's ScriptUpdateProcessor
Try using the DropBox Core API in Python
I tried Hello World with 64bit OS + C language without using the library
python beginners tried to predict the number of criminals
I tried to graph the packages installed in Python
Python beginners tried implementing REST API in one day
I tried using TradeWave (BitCoin system trading in Python)
Initial settings when using the foursquare API in python
Determine the threshold using the P tile method in python
Study from the beginning of Python Hour1: Hello World
[Python] I tried running a local server using flask
Using the National Diet Library Search API in Python
Hello, Flask! Can be done in seconds, but people who don't know the contents
Hello world with flask
Using the LibreOffice app in Python (1) Where are the macros?
Python OpenCV tried to display the image in text.
I tried the accuracy of three Stirling's approximations in python
I tried using the Python library from Ruby with PyCall
Display "Hello World" created in the local environment on the web
Run LINE Bot implemented in Python (Flask) "without using Heroku"
I tried programming the chi-square test in Python and Java.
[Python] Display the elapsed time in hours, minutes, and seconds (00:00:00)
I tried to implement the mail sending function in Python
Solve the Japanese problem when using the CSV module in Python.
Miscellaneous notes that I tried using python for the matter
[Python] I tried collecting data using the API of wikipedia
I tried to make a stopwatch using tkinter in python
What beginners learned from the basics of variables in python
Hello World in various languages [Python / PHP / Java / Perl / Ruby]
python / tensorflow beginners build jupyter + tensorflow environment and do Hello World
[For beginners] I tried using the Tensorflow Object Detection API
Hello World with Flask + Hamlish
Download the file in Python
Find the difference in Python
Programming language in "Hello World"
Hello World in GO language
[Python] I tried using OpenPose
Hello World (beginners) on Django
Python starting with Hello world!
Translate using googletrans in Python
Using Python mode in Processing
Getting Started with Heroku-Viewing Hello World in Python Django with Raspberry PI 3
I tried to solve the ant book beginner's edition with python
Movement that changes direction in the coordinate system I tried Python 3
I tried using the python module Kwant for quantum transport calculation
Use python on Raspberry Pi 3 to illuminate the LED (Hello World)
Regularly upload files to Google Drive using the Google Drive API in Python