python 基础

python 基础

tuple

t = (1, 2)
print(t[1]) # 2

list

append

insert

pop

set

add

remove

dict

get

pop

in

dict = {"city": "beijing", "tel": "01099999999"}
rs = "city" in dict # True

你可能感兴趣的:(python 基础)