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

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

  

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