#join方法使用字符串分隔 x="abcdefg" print(",".join(x)) #join方法使列表分隔 y=["ab","cd","ef","gh"] print(",".join(y))