python string
(1)常用函数
string.find("abc") ## 返回字符串"abc"在string中的起始序号
string.replace("abc", "ab")
string.count("d") ##统计指定字符(串)个数
string.isalpha()
string.isplace()
string.isdigit()
str.startswith(('x', 'yz'))
str.endswith(('x', 'yz'))
Troops, quality over quantity
(1)常用函数
string.find("abc") ## 返回字符串"abc"在string中的起始序号
string.replace("abc", "ab")
string.count("d") ##统计指定字符(串)个数
string.isalpha()
string.isplace()
string.isdigit()
str.startswith(('x', 'yz'))
str.endswith(('x', 'yz'))