Skip to content

Instantly share code, notes, and snippets.

View sudo-shubham's full-sized avatar
😁
Nothing

Shubham Patel sudo-shubham

😁
Nothing
View GitHub Profile
@sudo-shubham
sudo-shubham / num2chinese.py
Created July 25, 2018 05:07 — forked from gumblex/num2chinese.py
Numbers to Chinese representations converter in Python. 中文数字转换
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Licensed under WTFPL or the Unlicense or CC0.
# This uses Python 3, but it's easy to port to Python 2 by changing
# strings to u'xx'.
import itertools
def num2chinese(num, big=False, simp=True, o=False, twoalt=False):