数字到汉字

# 列表:

ch_num = ['ZERO',''''''''''''''''''''''''''''','lu','柒','捌',''']

ch = ['','挑选',''','仟','10,000)

执行当您输入数字时,将数字转换为汉字。

# 列表:

#ch_num = ['ZERO','壹','''''''''''''''''''''''''''''''''''''','lu','柒','捌','玖')

## ch = ['圆','挑选','','仟','10,000]

#执行当您输入数字时,将数字转换为汉字。

ch_num = ['ZERO',''''''''''''''''''''''''''''','lu','柒','捌',''']

Ch = ['圆','挑选“,'','仟','10,000','挑选','',',',',',',','opping','挑选']

client_ipt =输入(“请输入int_num:”)#1234567

num_len = len(client_ipt)

对于i client_ipt:

num_len - = 1

打印(f“{ch_num [int(i)]} {ch [num_len]}”,end =“”)#佰贰万伍柒

打印(“整体”)#整