【1.15】数据类型方法总结
1、int
这里就两个方法
int
bit_lenth
2、str
replace
find 找不到就返回 -1
join
strip
startswith
endswith
upper
lower
format
format 注意可以**{}传字典
split
3、list
append
extend
insert
切片
循环
4、tuple
count
索引 切片 循环
一级元素不能修改
5、dict
get
update
keys
values
items
for 循环
可以索引 不能切片
in
not in
6、bool
bool值转换
记住 false
None
0
空list []
空str “”
空字典 {}
空元组 ()
浙公网安备 33010602011771号