Programming2 [python 3] 문자열 파싱2 2019/09/03 - [분류 전체보기] - [Python 3] 문자열 파싱 [Python 3] 문자열 파싱 메일 패킷 샘플(출처 : https://www.py4e.com/code3/mbox-short.txt) From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008 Return-Path: Received: from murder (mail.. sesto.tistory.com 메일 패킷은 위를 참조. 예제1) split 함수를 사용하여 보낸 사람 이메일을 추출하고 총 몇명이 보냈는지 출력하시오 문제 해결 과정 split() 으로 해보니 리스트 형태로 출력 되었고 두번째 원소에 이메일이 있는 듯 두번째를 출력하니 나옴 예제2) 중복되는 경우를 제외하면? list에 .. 2019. 9. 3. [Python 3] 문자열 파싱 메일 패킷 샘플(출처 : https://www.py4e.com/code3/mbox-short.txt) From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008 Return-Path: Received: from murder (mail.umich.edu [141.211.14.90]) by frankenstein.mail.umich.edu (Cyrus v2.3.8) with LMTPA; Sat, 05 Jan 2008 09:14:16 -0500 X-Sieve: CMU Sieve 2.3 Received: from murder ([unix socket]) by mail.umich.edu (Cyrus v2.2.12) with LMTPA; Sat, 05 Jan 2008 09:.. 2019. 9. 3. 이전 1 다음