본문으로 바로가기

list[]를 문자열로 합치기

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


test()

'Python' 카테고리의 다른 글

python 에러 체크 예제  (0) 2020.02.24
python 문자열에서 html 태그 없애기  (0) 2020.02.24
json 등 딕셔너리에 특정 키 존재 확인  (0) 2020.02.24
Confluence python-api 참고  (0) 2020.02.24
BeautifulSoup 사용  (0) 2020.02.24