python 用字典实现自定义规则字符串替换
python MOOC 学习
# use dic for string replace with specific rules
temp = input()
dict = {'1':'一','2':'二','3':'三','4':'四','5':'五','6':'六','7':'七','8':'八','9':'九'}
con = []
for n in list(temp):
con.append(dict[n])
print(''.join(con))