标签:NPU return inpu def put har input tran 数字转换
def num_to_char( num ):
new_str= ""
num_dict ={"0":u"零","1":u"一","2":u"二","3":u"三","4":u"四","5":u"五","6":u"六","7":u"七","8":u"八","9":u"九"}
list_num =list(num)
TransformV=[]
for i in list_num:
TransformV.append(num_dict[i])
return TransformV
new_str = num_to_char(input())
print("".join(new_str))
标签:NPU return inpu def put har input tran 数字转换
原文地址:https://www.cnblogs.com/lummg-DAY/p/10680539.html