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 = list() l[2] = 'two'
予想通り、それはうまくいきません。範囲外の例外を返します。
たとえば、長さのリストを定義する方法はありますか?
これを試してみてください
values = [None]*1000
1000 の代わりに、希望する番号を使用します。