특수문자제거1 python re sub remove special characters # remove special characters corpus = "learning% makes 'me' happy. i am happy be-cause i am learning! :)" corpus = re.sub(r"[^a-zA-Z0-9.?! ]+", "", corpus) print(corpus) learning makes me happy. i am happy because i am learning! 2022. 11. 17. 이전 1 다음 반응형