Python集合数据类型简洁总结-List、Tuple、Dict、Set
使用python版本:python3.6 一、List 1)list的创建 字符串类型:L = [‘Tom’,’Bob’,’Tim’,’Tracy’] 整数类型:L = [50,100,200,500] 不同种类型:L = [‘Tom’,20,’Bob’,300,’Tim’] 空list:L = []...
2018, Sep 03 — 2 minute read使用python版本:python3.6 一、List 1)list的创建 字符串类型:L = [‘Tom’,’Bob’,’Tim’,’Tracy’] 整数类型:L = [50,100,200,500] 不同种类型:L = [‘Tom’,20,’Bob’,300,’Tim’] 空list:L = []...
2018, Sep 03 — 2 minute read