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

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:

主站蜘蛛池模板: 西青区| 宝山区| 文登市| 七台河市| 江源县| 武威市| 杭锦后旗| 甘肃省| 临西县| 秦皇岛市| 永泰县| 株洲县| 荣昌县| 江油市| 兴安县| 子长县| 临夏县| 伊吾县| 叶城县| 水富县| 巴南区| 渭南市| 虹口区| 讷河市| 德保县| 云浮市| 上高县| 瓦房店市| 文成县| 邢台市| 两当县| 台前县| 邯郸县| 通江县| 乐安县| 紫云| 泸溪县| 蒙城县| 广西| 双城市| 宣恩县|