Seeking character length used len ()
Note: space character is a
request string maximum value (ASCII value of the character), using the max () , the minimum value using the min ()
See the ASCII value of the character , using the ord ()
To check whether the character is in the string , use in/not in
r: the original string. In the input path such as C:\news, the program may interpret it as an escape character. Add r before it to avoid errors.
View the data Type , use the type
string to split , use split() (the split characters are in parentheses)
To connect strings , use join()
To remove spaces or characters , use strip() to
remove spaces or characters on the left, use lstrip() to
remove spaces or characters on the right, use rstrip()
Capitalize all characters , use lower()
to lowercase all characters , and use upper()
to determine case