草庐IT

FrozenList

全部标签

python - 为什么 FrozenList 不同于元组?

frompandas.core.baseimportFrozenListType:typeStringform:File:/site-packages/pandas/core/base.pyDocstring:Containerthatdoesn'tallowsettingitem*but*becauseit'stechnicallynon-hashable,willbeusedforlookups,appropriately,etc.为什么不直接使用元组?FrozenList会提供哪些额外功能? 最佳答案 这是一个内部pandas