python join
[python] list (문자, 숫자)의 값을 연결하기 - join
#문자일때 a1 = ['Sombody','loves','you'] a2 = ''.join(a1) print(a2) # Sombody loves you #숫자일때 nums = [1,2,3,4,5] print(','.join(map(str,nums)) # 1,2,3,4,5
#문자일때 a1 = ['Sombody','loves','you'] a2 = ''.join(a1) print(a2) # Sombody loves you #숫자일때 nums = [1,2,3,4,5] print(','.join(map(str,nums)) # 1,2,3,4,5