python最新字符串学习总结
names="hello word"
len()
title()
formate 格式化
split
join
find()
replace()
startswith()
endswith()
upper()
lower()
strip() lstrip() rstrip()
index()
isdigit() 判断是否是个数字
swapcase 大小写反转
index与find 区别
index(“str”) str不存在时候 报错
find("str") str不存在时候 返回 -1