2015년 3월 14일 토요일

3.14.15 Pi Day

3.14.15 100년만에 돌아온 파이데이

SW(파이선)으로 'Now I need a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.'문장을 이용해서 파이를 표현해 보자. 

#python -c "import re; print map(len, re.compile('[a-z]+', re.I).findall('Now I need a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.'));"

[3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9]

댓글 없음:

댓글 쓰기