立即学习:https://edu.csdn.net/course/play/6521/126637?utm_source=blogtoedu
string类型的API
一般函数
startswith/endswith
- 判断是否以特定字符开头/结尾
count
find
s = 'I love you'
s.startswith('I')
立即学习:https://edu.csdn.net/course/play/6521/126637?utm_source=blogtoedu
string类型的API
一般函数
startswith/endswith
- 判断是否以特定字符开头/结尾
count
find
s = 'I love you'
s.startswith('I')