1 2 3 4 5 6 7 8 9 10 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # LAB 9-6 À̸ÞÀÏ ÁÖ¼Ò¸¦ ºÐ¼®ÇØ º¸ÀÚ, 240ÂÊ # import re txt = 'abc@facebook.com¿Í bbc@google.com¿¡¼ À̸ÞÀÏÀÌ µµÂøÇÏ¿´½À´Ï´Ù.' output = re.findall('\S+@[a-z.]+', txt) for text in output: text_split = text.split('@') print('ÃßÃâµÈ ¾ÆÀ̵ð : ' + text_split[0] + ' , µµ¸ÞÀÎ : ' + text_split[1]) | cs |