在"星火征途"的飞船日志系统中,记录了一段摩斯密码字符串 code = ".... .."。若想去掉中间的空格变成 "......",应使用以下哪个字符串方法?
code.replace(" ", "")
code.split(" ")
code.strip(" ")
code.join(" ")