#37342: 求救!


eason940924@apps.ntpc.edu.tw (李展宇)


為什麼line6會出現string index out of rang?
以下程式:
 
a = input()
b = ""
for i in range(1,len(a)+1):
  b = b + a[-i]
  i += 1
while b[0] == "0":
  b = b[1:]
print(b)
#37347: Re: 求救!


liaoweichen1024@gmail.com (M_SQRT)


輸入0