Built-in data structures in Python

https://www.cnblogs.com/myworld7/p/8449614.html#_label0_0

List list: expressed in square brackets, for example [1,2,3]

Tuple tuple: expressed in parentheses, such as (1,2,3), can be understood as a fixed list, and the internal elements cannot be changed

Dictionary dict: expressed in curly braces, for example in the form {'Mon':2,'Tue':3}, the key cannot be repeated, and the value can be repeated

Set: Initialization is carried out with parentheses and square brackets ([1,2,3]), each element in the set is an arbitrary object that is unordered and non-repetitive

Guess you like

Origin blog.csdn.net/weixin_43450646/article/details/107468152