收起
参考:
s = input()[::-1] index = 0 while 1: if s[index] != '0': break index += 1 l = s[index:] print(l)
报告相同问题?