时间:2024-10-13 06:03:48
1、使用join()方法:string.join(iterable);需要注意的是join中的对象必虔銎哂埽须为string,也就是字符串。
3、使用循环的方法:将每个元素转化为str,再循环与空相连.