阅读背景:

为什么Django使用元组设置而不是列表?

来源:互联网 

Quoting this answer:

引用这个答案:

Apart from tuples being immutable there is also a semantic distinction that should guide their usage. Tuples are heterogeneous data structures (i.e., their entries have different meanings), while lists are homogeneous sequences. Tuples have structure, lists have order. Apart from



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: