def formatResultString(*echoInfo): joinString=',' ResultString = joinString.join(echoInfo[0]) return ResultString x=['lala','oka','woca','end'] print formatResultString(x) #结果:lala,oka,woca,end