인프런 커뮤니티 질문&답변
답변 1
0
좋은사람
지식공유자
안녕하세요.
리스트 등으로 된 문자열 결합은 Join 메소드로 사용하셔도 됩니다.
>>> sentence = ['this','is','a','sentence']
>>> '-'.join(sentence)
'this-is-a-sentence'답변 1
0
안녕하세요.
리스트 등으로 된 문자열 결합은 Join 메소드로 사용하셔도 됩니다.
>>> sentence = ['this','is','a','sentence']
>>> '-'.join(sentence)
'this-is-a-sentence'