就性能而言,这两者有多大区别?
tmp = [] tmp.append(True) print tmp[0]
和
tmp = {} tmp[0] = True print tmp[0]
python data-structures
data-structures ×1
python ×1