| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # # 따라하며 배우는 파이썬과 데이터과학(생능출판사 2020) # LAB 9-2 트위터 메시지 처리의 단어 추출, 229쪽 # t = '[ARTICLE] 200820 BLACKPINK Jennie is regarded to have great effect on KT Mystic \ Red as it was chosen by 50% of those who prebooked for the Samsung Galaxy Note 20 ( LG \ U+ Mystic Pink 30%, SKT Mystic Blue not disclosed) ' low_t = t.lower() t = '' for word in low_t.split(' '): if word == 'kt' or word == 'samsung' or word == 'lg' or word == 'skt': t += '* ' else: t += word + ' ' print(t) | cs |


Python for AI 실습게시판