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

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

  

原文地址:https://www.cnblogs.com/mahailuo/p/8458023.html