" ". join() 함수가 가능하다는 것!
str_data = { 'A', 'B', 'C'}
joined_str=" and ".join(str_data)print(joined_str)
결과 값은 set 자료형 답게
C and B and A
B and C and A
...
위와 같이 순서가 랜덤하게 등장한다!
'Code' 카테고리의 다른 글
[JS] 입력된 여러 개의 숫자 계산하기 (0) | 2022.03.17 |
---|---|
[JS] 콘솔에 여러 문장에 걸쳐 입력 받기 (0) | 2022.03.14 |
[python] for, while의 차이에 대한 고민 (0) | 2022.02.22 |
[python] TypeError: list indices must be integers or slices, not str (0) | 2022.02.03 |
[python] beautifulsoup4 crawling_html에서 속성값 출력 문제 해결 (0) | 2022.02.03 |