PYTHON Learning 0014: Ganso ---- 2019-6-9

1. Definition: ordered, immutable data set. In fact, and the list almost as well as keep a set of data, but once it is created, it can not be modified, so called read-only list.
2, the syntax: small brackets. Ganso where you can also set a list of Ganso set in the list of elements that can change, because the memory address sub-list is not changing its internal elements change.
3, features: index, COUNT, slice.
slice:PYTHON Learning 0014: Ganso ---- 2019-6-9

4, usage scenarios:
clearly tell people where data can not be modified;
database connection configuration information.

Guess you like

Origin blog.51cto.com/13543767/2406539