python学习课件 字符串联接join()例子:>>>li=["apple","peach","banana","pear"]>>>sep=",">>>s=sep.join(li)>>>s"apple,peach,banana,pear"不推荐使用+连接字符串,优先使用join()方法CompareJoinAndPlu