I compared the processing speeds of [] and list() on Python 3.11 $ python -m timeit '[]' 20000000 loops, best of 5: 11.3 nsec per loop $ python -m timeit 'list()' 10000000 loops, best of 5: 26.1 nsec per loop and was surprised to discover that [] runs about two times faster than list(). I got very similar results for {} and dict() $ python -m timeit '{}' 20000000 loops, best of 5: 11.6 nsec per lo
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く