1、數字python
int()app
2、字符串orm
replace/find/join/strip/startswith/split/upper/lower/format tempalte = "i am {name}, age : {age}" v = tempalte.format(name='alex',age=19) v = tempalte.format(**{"name": 'alex','age': 19})
#在列表中傳字典加**,看到**聯想可能有字典
3、列表blog
append、extend、insert 索引、切片、循環
4、元祖索引
忽略 索引、切片、循環 以及元素不能被修改
5、字典ip
get/update/keys/values/items for,索引 dic = { "k1": 'v1' } v = "k1" in dic print(v) v = "v1" in dic.values()
6、布爾值字符串
0 1 bool(...) None "" () [] {} 0 ==> False