数据结构
简单介绍Python中常用的几种数据结构。
1. 列表 list
列表类似于其它编程语言里的可变数组。
标准库参考:列表是可变序列,通常用于存放同类项目。
1.1 列表的创建
使用方括号创建空列表:[]
使用方括号,里面的项用,隔开:[a,b,c]
使用列表推导式:[x for x in iterable]
使用构造器: list()或list(iterable)
构造器会返回一个列
soothe v.安慰,抚慰,劝慰
Nature boasts the great power to make our souls soothed and healed.
大自然拥有使我们的灵魂得到安慰和治愈的巨大力量。
capable adj有能力的,有才能的;能胜任的;可以..的;容许...的
I believe everyone is capable of achieving their