去掉for循环输出的尾部,

person_info = [{"name":"yuze", "age": '88', "gender": "", "hobby": "hha", "motto": "hehe"},
               {"name":"boge", "age": '18', "gender": "", "hobby": "basketball", "motto": "haha"}]


for i in person_info:
   print( ",".join([ str(v) for v in i.values()]))

 

你可能感兴趣的:(去掉for循环输出的尾部,)