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

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:

主站蜘蛛池模板: 汪清县| 临清市| 灵丘县| 蕉岭县| 襄樊市| 乌鲁木齐市| 汉阴县| 丹凤县| 望都县| 海阳市| 应城市| 洛宁县| 伊川县| 崇阳县| 绥滨县| 嘉鱼县| 洛扎县| 克什克腾旗| 义马市| 喜德县| 绵竹市| 武平县| 合江县| 许昌市| 黄石市| 明水县| 山东| 武定县| 泉州市| 西乌珠穆沁旗| 宣城市| 德清县| 丁青县| 南平市| 黔西县| 赣榆县| 平原县| 兴和县| 博客| 阳春市| 呈贡县|