join合并字符串时使用生成器表达式

data=['11','pp','aa']
','.join(str(d) for d in data)

  

posted on 2018-02-22 09:25  hailuo  阅读(438)  评论(0)    收藏  举报