The normalize - space function returns the argument string with white space normalized by stripping leading and trailing whitespace and replacing sequences of whitespace characters by a single space Normalize - space函数返回一个这样的新串:将输入串的开头和结尾空格符全部去掉,然后把串内的连续空格符替换为单个空格,再返回。