str = str.strip() 			# 去掉字符串中的首尾空格
str = str.replace(" ","") 	# 去掉字符串中的所有空格