jion()方法用来将列表中多个字符串进行连接,并在相邻两个字符串之间插入指定字符,返回新字符串。例子:

li=【“apple”,“peach”,“banana”】

sep=“,”

sep.jion(li)

“apple,peach,banana”

输出结果是以逗号为分隔符