{"categories":["Python 3"],"description":"\u578b\u6307\u5b9a\u3057\u3066\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u5834\u5408\u3001for\u69cb\u6587\u3067\u3072\u3068\u3064\u3072\u3068\u3064\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u3088\u308a\u3082[...]*n\u3084\u5185\u5305\u8868\u8a18\u3001\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u30fc\u5f0f\uff0btuple()\u3092\u4f7f\u3063\u305f\u65b9\u304c\u8981\u7d20\u306e\u578b\u6307\u5b9a\u3082\u7701\u7565\u3067\u304d\u307e\u3059\u3002 VSCode\u3067\u306f\u6b21\u306e\u30b3\u30fc\u30c9\u3067list[int]\u3084tuple[int, ...]\u306a\u3069\u304c\u63a8\u8ad6\u3055\u308c\u307e\u3059\u3002 #list1\u306f\u578b\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082list[int] list1 = [0]*5 #tuple1\u306f\u578b\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082tuple[Literal[0], ...] tuple1 = (0,)*5 #list2\u306f\u578b\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082list[int] list2 = [x for x in range(5) if x % 2 == 0] #\u2026","width":"100%","title":"Python3 \u30ea\u30b9\u30c8\u3084\u30bf\u30d7\u30eb\u306e\u4f5c\u6210\u306ffor\u69cb\u6587\u3092[...]*n or \u5185\u5305\u8868\u8a18\u306b\u5909\u3048\u308b\u3068\u8981\u7d20\u306e\u578b\u6307\u5b9a\u304c\u7701\u7565\u3067\u304d\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2022%2F09%2F20%2F174512\" title=\"Python3 \u30ea\u30b9\u30c8\u3084\u30bf\u30d7\u30eb\u306e\u4f5c\u6210\u306ffor\u69cb\u6587\u3092[...]*n or \u5185\u5305\u8868\u8a18\u306b\u5909\u3048\u308b\u3068\u8981\u7d20\u306e\u578b\u6307\u5b9a\u304c\u7701\u7565\u3067\u304d\u308b - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" 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":null,"blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","author_url":"https://blog.hatena.ne.jp/potisan/","author_name":"potisan","published":"2022-09-20 17:45:12","provider_name":"Hatena Blog","height":"190","url":"https://potisan-programming-memo.hatenablog.jp/entry/2022/09/20/174512","blog_url":"https://potisan-programming-memo.hatenablog.jp/","provider_url":"https://hatena.blog","version":"1.0","type":"rich"}