具体代码如下: a=input("请输入一串数字:") i=0; for i in a: b=int(i) if b<9: b+=1 print(b,end="") else: b=0 print(b,end="")