startswith() 、endswith()

startswith() 判断字符串是否以某字符串开头
endswith() 判断字符串是否以某字符串结尾

posted @ 2022-04-22 18:50  灵、主  阅读(42)  评论(0)    收藏  举报