{"version":"1.0","description":"\"Python \u3067\u30ea\u30b9\u30c8\u3092\u8ee2\u7f6e\u3059\u308b\" \u306b\u3064\u3044\u3066\u306e\u30e1\u30e2\u3067\u3059\u3002 \u8981\u70b9 2\u6b21\u5143\u306e\u30ea\u30b9\u30c8\u3092\u5c55\u958b\u3057\u3066 zip() \u3059\u308b\u3068\u3001\u8ee2\u7f6e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 >>> aList = [[11, 12, 13], [21, 22, 23]] >>> list(zip(*aList)) [(11, 21), (12, 22), (13, 23)] \u539f\u7406 \u95a2\u6570\u306b\u8907\u6570\u306e\u5f15\u6570\u3092\u6e21\u3059\u6642\u3001\u30ea\u30b9\u30c8\u540d\u306b * \u3092\u3064\u3051\u308b\u3068\u3001\u5c55\u958b\u3055\u308c\u5404\u8981\u7d20\u304c\u5f15\u6570\u3068\u3057\u3066\u6e21\u3055\u308c\u308b\u3002 >>> aList = [[11, 12], [21, 22]] >>> '1\u500b\u3081\u306f {} \u3067\u30012\u500b\u3081\u306f {} \u3067\u3059\u3002'.format(*aList) '1\u500b\u3081\u306f [11, 12\u2026","height":"190","author_name":"satamame","image_url":null,"title":"Python \u3067\u30ea\u30b9\u30c8\u3092\u8ee2\u7f6e\u3059\u308b","url":"https://satamame.hatenablog.com/entry/2019/09/08/095606","blog_title":"\u30e1\u30e2\u306f\u3069\u3053\u3078\u884c\u3063\u305f","published":"2019-09-08 09:56:06","blog_url":"https://satamame.hatenablog.com/","provider_name":"Hatena Blog","type":"rich","author_url":"https://blog.hatena.ne.jp/satamame/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsatamame.hatenablog.com%2Fentry%2F2019%2F09%2F08%2F095606\" title=\"Python \u3067\u30ea\u30b9\u30c8\u3092\u8ee2\u7f6e\u3059\u308b - \u30e1\u30e2\u306f\u3069\u3053\u3078\u884c\u3063\u305f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","provider_url":"https://hatena.blog","categories":[]}