'''有个列表 ["hello", "world", "zerui"]如何把把列表里面的字符串联起来,得到字符串 "hello_world_zerui"'''a=['hello','world','zerui']print("_".join(a))# 语法:'sep'.join(iterable)# 参数说明:# sep :分隔符。可以为空# iterable:可迭代对象,要连接的元素列表、字符串、元组、集合、字典# 上面的语法即:以 sep 作为分隔符,将 seq 所有的元素合并成一个新的字符串# 返回值:返回一个以分隔符 sep 连接各个元素后生成的字符串
