#-*-coding:utf-8-*- ''' join()方法,注意列表元素要是str类型的,不能是int,否则会报错 ''' lis = ['q','qw','1'] s = '*'.join(lis) print(s)