Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
L、タプルのリスト(例はL = [(1,0,0), (1,1,0)])を取り、ループして の番目のエントリLの新しい変数を作成する関数を書きたいと思います。したがって、理想的には、この for ループの最後に. そして、タプルをリストに変換するつもりですが、それについてググったところ、. しかし、どうすれば最初の部分を達成できますか?t{0}.format(i)iLt1 = (1,0,0), t2 = (1,1,0)t1 = list(t1)
L
L = [(1,0,0), (1,1,0)]
t{0}.format(i)
i
t1 = (1,0,0), t2 = (1,1,0)
t1 = list(t1)