isalpha() #Returns whether all letters are alphabetic (in short, letters, not numbers).
isdigit() #Returns whether all letters are numbers (including full-width numbers).
islower() #Returns whether it contains case-sensitive characters, all of which are lowercase.
isupper() #Returns whether all uppercase and lowercase letters are included and all are uppercase.
lower() #Converts case-sensitive characters to lowercase and returns. The other characters remain the same.
upper() #Converts case-sensitive characters to uppercase and returns. The other characters remain the same.
#There are many verification formulas for character strings with isXXX, so look for them if you want to make an appropriate judgment.
count(sub[, start[, end]]) # [start, end)Returns the number of occurrences of sub in the range of.
find(sub[, start[, end]]) # [start, end)Returns the position where sub first appears in the range of. If not found-1 Return.
index(sub[, start[, end]]) # [start, end)Returns the position where sub first appears in the range of. If not found, an error is returned.
endswith(suffix[, start[, end]]) # [start, end)Returns whether it ends with a suffix in the range of.
startswith(prefix[, start[, end]]) # [start, end)Returns whether or not it starts with a prefix in the range of.
Recommended Posts