s='abcd' print('-'.join(s))#输出结果 a-b-c-d ls=['1','2','3','4'] print('-'.join(ls))#输出结果 1-2-3-4本文出自 www.luofenming.com