Python (seven) sequence

sequence! sequence!

 

What lists, tuples, and strings have in common:

-- can get an element by index

--The default index starts from 0

--You can get a subset within a certain range by sharding

--There are many common operators (repeat operator, concatenation operator, membership operator)

 

Help document:

help(list) means to view the help documentation about list

 

for example:

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326350328&siteId=291194637