a=input() sum=0 while True: for i in a: sum=int(i)+sum break num=["ling","yi","er","san","si","wu","liu","qi","ba","jiu"] sum=",".join(str(sum)) //为了输入后边的空格并且最后一个后边没有空格加的逗号 while True: for i in sum: if i!=",": print(num[int(i)],end="") if i==",": print(end=" ") break print()
PTA1002题,写出这个数
最新推荐文章于 2022-04-03 16:29:31 发布