Python基础——数字形式转换

Num = input()
Numcase = ("零","一","二","三","四","五","六","七","八","九")
for i in Num:
    n = eval(i)
    print(Numcase[n],end = "")

你可能感兴趣的:(Python,python)