pyhton data types

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

List usage scenarios

The list is an array of java

 

 

 

 

Tuple denoted by ()

Elements of a tuple can not be changed

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Convert between tuples and lists

 

 

 

 

 

dictionary

Use {} indicates

 

 

 

 

 

 

 

 

 

 

 

Merge dictionary

 

 

 

 

Empty dictionary

 

 

 

 

 

Traversal Dictionary

 

 

 

 

 

 

 

 

 

 

 

String

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Published 103 original articles · won praise 1 · views 2339

Guess you like

Origin blog.csdn.net/W_317/article/details/104693796