티스토리 뷰
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | string = input("영어 문자열 입력 : ") def printcount(i): global string cnt = string.count(chr(i)) if cnt is not 0: print(chr(i)," : ",cnt) for i in range(65,91): printcount(i) print("-------------------------------------") for i in range(97,123): printcount(i) | cs |
'배운 것 > Python' 카테고리의 다른 글
curl to python request (0) | 2019.12.04 |
---|---|
[Python] 가위바위보 예제 (0) | 2018.03.23 |
Google 스프레드 시트를 파이썬에서 사용해보자. - 1 (7) | 2018.03.13 |
[python] 인터넷에서 이미지 다운받기 (0) | 2017.08.14 |
[Python] 크롤링 기초_네이버 실검 파싱해오기 (0) | 2017.08.11 |
댓글