Skip to content

Instantly share code, notes, and snippets.

View donghak-shin's full-sized avatar

Donghak Shin donghak-shin

  • Seoul, South Korea
View GitHub Profile
@donghak-shin
donghak-shin / n2ko.py
Created February 12, 2017 13:41
숫자를 한글로 변환하는 함수
# -*- coding: utf-8 -*-
def n2ko(num):
if isinstance(num, int) or isinstance(num, long):
if num == 0:
return u'영'
num = str(num)
size = len(num)
kor = ''
tmp = []