I converted to digital form

description

Obtaining user input is a positive integer input, digital output of the corresponding Chinese character.

0-9 corresponding Chinese characters are: zero 123,456,789

 ‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬

Example O

  Entry Export
Example 1
123
9876543210
一二三
九八七六五四三二一零

 

​
css = ['零','一','二','三','四','五','六','七','八','九']
a = input()
i=0
lena=len(a)
for lena in a:
    b=int(a[i])
    print(css[b],end='')
    i=i+1
​

 

Guess you like

Origin blog.csdn.net/qq_41303708/article/details/93378493