{"author_url":"https://blog.hatena.ne.jp/toburau/","image_url":null,"blog_title":"\u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18","version":"1.0","width":"100%","type":"rich","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F2022%2F07%2F18%2F000000\" title=\"Python\u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5f15\u6570 - \u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Python"],"url":"https://toburau.hatenablog.jp/entry/2022/07/18/000000","author_name":"toburau","blog_url":"https://toburau.hatenablog.jp/","height":"190","title":"Python\u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5f15\u6570","description":"Python \u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5f15\u6570\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f sys \u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5229\u7528\u3059\u308b\u3002 sys.argv \u304c\u5f15\u6570\u306e\u30ea\u30b9\u30c8\u3068\u306a\u3063\u3066\u3044\u308b\u3002 \u30ea\u30b9\u30c8\u306e1\u3064\u76ee\u306f\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u540d\u3002\u3053\u308c\u306fC\u3068\u540c\u3058\u3067\u5206\u304b\u308a\u3084\u3059\u3044\u3002 \u5f15\u6570\u306e\u500b\u6570\u306f\u30ea\u30b9\u30c8\u306e\u500b\u6570\u3092 len() \u3067\u53d6\u5f97\u3059\u308c\u3070\u826f\u3044\u3002 import sys args = sys.argv if len(args) == 1: print(\"no parameter.\") exit() print(args[1])","provider_url":"https://hatena.blog","published":"2022-07-18 00:00:00"}