strip() str.strip([chars]) 移除字符串头尾指定的字符生成新的字符串 chars–表示字符串头尾指定的字符序列 split() 拆分字符串,通过指定分隔符对字符串进行切片,并返回分割后的字符串列表 str.split(‘chars’) chars 表示分隔符,默认为空格