一类是集合数据类型,如list
、tuple
、dict
、set
、str
等;
list是[1,2,3,4,5,5,6,7,7,8]
tuple(1,2,3,4,5,6,7,8,8,9)
dict是{'a':2,'b:3,'r':4}
str 是字符串类型。
set是一个无序不重复元素集
def 定义函数名(参数)
print输出
一类是集合数据类型,如list
、tuple
、dict
、set
、str
等;