Beispiel #1
0
def number_to_zhcn(nb):
    if len(nb) >= 5:
        #may be tellphone
        return num2chinese.num2cnphone(nb)
    else:
        return num2chinese.num2chinese(nb,
                                       big=False,
                                       simp=True,
                                       o=False,
                                       twoalt=True)
Beispiel #2
0
def number_to_zhcn(nb):
    if len(nb) >= 5:
        #may be tellphone 
        return num2chinese.num2cnphone(nb)
    else:
        return num2chinese.num2chinese(nb, big=False, simp=True, o=False, twoalt=True)