热门
strip():去除字符串两端指定的字符(默认为空格)
string = " Hello, World! " new_string = string.strip() print(new_string)