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.
私がする時:
cand = [ [ 0, 0 ] ] * 4
に続く:
cand[0][0] = 99
私は得る:
[[99, 0], [99, 0], [99, 0], [99, 0]]
乗算は単にリスト参照をコピーしますか? 個別のリストを持つ方法はありますか?