def formatResultString(*echoInfo): joinString=‘,‘ ResultString = joinString.join(echoInfo[0]) return ResultString x=[‘lala‘,‘oka‘,‘woca‘,‘end‘] print formatResultString(x) #结果:lala,oka,woca,end
时间: 2024-10-28 16:43:13
def formatResultString(*echoInfo): joinString=‘,‘ ResultString = joinString.join(echoInfo[0]) return ResultString x=[‘lala‘,‘oka‘,‘woca‘,‘end‘] print formatResultString(x) #结果:lala,oka,woca,end