<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>owiewowe</author_name>
  <author_url>https://blog.hatena.ne.jp/owiewowe/</author_url>
  <blog_title>19日に更新してた</blog_title>
  <blog_url>https://owiewowe.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>あるデータを閾値で区切って処理しているときに、閾値ちょうどの値がそこそこあったりすると、上に入れるか下に入れるかで迷って、ならどっちもやってみてどう考えるのがいいか統計とってやればいいかと手を付けてみる。そのときに、python で 0，1，と閾値 を 2 として、 itertools.product を使ってみると import itertools a=[0,2,0,1,2,2] b=[list(i) for i in itertools.product(*[[i] if i!=2 else [0,1] for i in a])] print(b) &gt;&gt;[[0, 0, 0, 1, 0, 0]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fowiewowe.hatenablog.com%2Fentry%2F2024%2F03%2F19%2F000000_1&quot; title=&quot;【Python】二次元リストの中に append できないの？ - 19日に更新してた&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/o/owiewowe/20240206/20240206104736.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-03-19 00:00:00</published>
  <title>【Python】二次元リストの中に append できないの？</title>
  <type>rich</type>
  <url>https://owiewowe.hatenablog.com/entry/2024/03/19/000000_1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
