한글1 python3 한글 모든 글자 출력하기 Python3 한글 모든 단어 출력어느날 개발하다가 문득 필요하게 되어 작성한 코드입니다.가 부터 힣 까지 일괄적으로 출력하기 위해 작성하였고, 별 내용은 없습니다.환경 python3.xmac osx코드#!-*- coding: utf-8 -*- def nextKorLetterFrom(letter): lastLetterInt = 15572643 if not letter: return '가' a = letter b = a.encode('utf8') c = int(b.hex(), 16) if c == lastLetterInt: return False d = hex(c + 1) e = bytearray.fromhex(d[2:]) flag = True while flag: try: r = e.decode('utf.. 2017. 8. 1. 이전 1 다음