• 2024-11-24PythonDay2Base
    PythonDay2Base前文见上一篇文章数据类型详解字符串str补充startswith判断字符串是否以某个小字符串开头s1="shujia数加科技学习study"b=s1.startswith('sh')print(b)#Trueendswith判断字符串是否以某个小字符串结尾s1="shujia数加科技学习study"