小小小小白白白白

2019年6月27日

python种的元组、列表、字典、集合

摘要: 列表# 可用list()函数建立list1 = list((1, 2))# 用[]建立,可包含不同数据类型list2 = [1, 3, 'hello', 3.5] list.append(): 追加成员list.count(x): 计算列表中参数x出现的次数list.extend(L): 向列表中追 阅读全文

posted @ 2019-06-27 17:10 小小小小白白白白 阅读(162) 评论(0) 推荐(0) 编辑