python列表内字符串合并‘ ‘.join(list)

  • Post author:
  • Post category:python


例如:

list_of_strings = ["Hello", "python", "hello", "world", "h"]
b = ','.join(list_of_strings)
print(b)



版权声明:本文为weixin_45633106原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。