Python

list[]를 문자열로 합치기

BIZLAB 2020. 2. 24. 14:43
def test():
    list = ['a', 'b', 'c', 'd']
    
    # 연결 문자열 -
    print('-'.join(list))


test()