{"provider_name":"Hatena Blog","height":"190","version":"1.0","url":"https://okpy.net/entry/2025/08/15/105016","blog_url":"https://okpy.net/","author_url":"https://blog.hatena.ne.jp/starful/","description":"Python flask \u30e9\u30a4\u30d6\u30e9\u30ea\u5b8c\u5168\u30ac\u30a4\u30c9 Python \u306e flask \u306f\u3001\u8efd\u91cf\u3067\u30b7\u30f3\u30d7\u30eb\u306a Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30df\u30cb\u30de\u30ea\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u3059\u3002 1. flask \u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u6982\u8981 Web API \u3084\u30b5\u30fc\u30d3\u30b9\u3092\u624b\u8efd\u306b\u958b\u767a\u53ef\u80fd \u7c21\u5358\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3001URL \u30de\u30c3\u30d4\u30f3\u30b0 Jinja2 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u306b\u3088\u308b HTML \u30ec\u30f3\u30c0\u30ea\u30f3\u30b0 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5 \u30b3\u30d4\u30fc pip install flask 2. \u4e3b\u306a\u6a5f\u80fd\u3068\u4f7f\u7528\u4f8b (1) \u57fa\u672c\u7684\u306a\u30eb\u30fc\u30c8\u64cd\u4f5c \u30b3\u30d4\u30fc from flask import Flask app = Flask(__name__) @app.route(\"/\") d\u2026","published":"2025-08-15 10:50:16","categories":["python"],"title":"Flask\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5b8c\u5168\u30ac\u30a4\u30c9","provider_url":"https://hatena.blog","author_name":"starful","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fokpy.net%2Fentry%2F2025%2F08%2F15%2F105016\" title=\"Flask\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5b8c\u5168\u30ac\u30a4\u30c9 - okpy\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/starful/20250814/20250814113826.png","type":"rich","width":"100%","blog_title":"okpy"}