1. String judgments
Str.isalnum () returns: True, all letters or numbers
Str.isalpha () returns: True, all letters
Str.isdigit () returns: True, all numbers
Str.istitle () returns: True, the first letter is uppercase
Str.isspace () returns: True, all spaces
Str.islower () returns: True, all lowercase letters
Str.isupper () returns: True, all uppercase
2. Table
L.extend (list2) Add all elements of table list2 at the end of table L
L.append (x) append x element at the end of L
L.sort () sort the elements in L
L.reverse () reverse the elements in L
L.pop () returns: the last element of table L, and deletes the element in table L
Del L[i] Delete the element
(All of these methods are performed on the original table, and will have an effect on the original table instead of returning a new table.) )
Python Learning Note 12 (sequence some method summary)