官术网_书友最值得收藏!

The endswith(), isdigit(), isalpha(), islower(), isupper(), and capitalize() methods

The endswith() method checks whether the given string ends with a specific character or word that we pass as an argument:

The isdigit() method checks whether the given string is of a digit type or not:

The isalpha() method checks whether the given string is of an alphabetic character type or not:

The islower() method checks whether the string is lowercase, while the isupper() method checks if the string is uppercase. The capitalize() method puts a given string into sentence case:

主站蜘蛛池模板: 西昌市| 潢川县| 潢川县| 塘沽区| 龙井市| 东兰县| 永州市| 佛冈县| 沁源县| 藁城市| 丰台区| 乡城县| 九江市| 武清区| 阜南县| 安泽县| 五家渠市| 湟源县| 滦南县| 长汀县| 嵊泗县| 正阳县| 阳山县| 绵竹市| 宁陵县| 霞浦县| 宁城县| 镇坪县| 广河县| 天峻县| 钟祥市| 鄂尔多斯市| 叶城县| 桂林市| 长海县| 高邑县| 宁乡县| 曲周县| 开封市| 武汉市| 凌云县|