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

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:

主站蜘蛛池模板: 嘉荫县| 大冶市| 桂阳县| 兴业县| 如东县| 长武县| 得荣县| 和顺县| 渭源县| 和平县| 沅陵县| 裕民县| 荣昌县| 巫山县| 井陉县| 沧州市| 南城县| 黄浦区| 双江| 高淳县| 安阳市| 苗栗县| 西华县| 二手房| 策勒县| 顺昌县| 乾安县| 柳河县| 永川市| 宁津县| 灯塔市| 文山县| 白水县| 利津县| 三亚市| 驻马店市| 大宁县| 绥宁县| 永泰县| 浑源县| 法库县|