python如何判断字符串是否以某个或者某几个字母或者数字结尾
2021-06-07 15:02
阅读:453
标签:rgb col ESS 数字 int 字符串 eoj 判断字符串 roc
用endwith()方法可以判断字符串是否以某个或者某几个字母或者数字结尾
1 a = ‘auy.geojson‘ 2 b = ‘auy‘ 3 print(a.endswith(‘.geojson‘)) 4 print(b.endswith(‘.geojson‘))
结果
1 True 2 False 3 4 Process finished with exit code 0
python如何判断字符串是否以某个或者某几个字母或者数字结尾
标签:rgb col ESS 数字 int 字符串 eoj 判断字符串 roc
原文地址:https://www.cnblogs.com/wodewei/p/14583654.html
上一篇:spring
下一篇:Spring详解Aware接口
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:python如何判断字符串是否以某个或者某几个字母或者数字结尾
文章链接:http://soscw.com/essay/91786.html
文章标题:python如何判断字符串是否以某个或者某几个字母或者数字结尾
文章链接:http://soscw.com/essay/91786.html
评论
亲,登录后才可以留言!