The gods were silent - personal CSDN Blog Directory
Last updated :2022.6.27
Earliest update time :2022.6.27
lower()
: All lowercase letters strip()
: Remove the leading and trailing spaces of the string strip(chars:str)
: Remove all... From the beginning and end of the string chars The characters that appear in ( Pay attention to this chars It's a string, so it can't be in regular expression format )endswith(chars:str)
: Returns a Boolean value , Whether the string uses chars As the end set.intersection(set1, set2 ... etc)
: Returns the intersection of the input parameter set eval(str)
: Execute an expression in string format , And return the expression result raise Exception(message:str)
Exception Can be replaced by other Exception Subclass .object.__dict__
Reference materials in the process of writing this article :