0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

FLASK ~Hello Python!~と表示する【Window.Ver】

Last updated at Posted at 2019-05-26

1.visual studio code に新しいフォルダ(myappという名前で保存)を作成 

2.myappフォルダの中に新しいファイルを作成する(hello.pyという名前で保存)

3.下記のコードを書く
hello.py _hello python と表示させる.png

4.ターミナルに行き

Windowsの場合は

$env:FLASK_APP="hello.py"

Flask run
2019-05-25 (4).png

5.ctrlキーを押しながら、http://127.0.0.1:5000/ を押すと
下記のようにブラウザが開きHello Python!と表示される
2019-05-25 (6).png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?