for i in range(1):
while True:
try:
GTIN = int(input("Enter A 8 Digit GTIN Code: "))
except ValueError:
print("That is invalid,Try again")
continue
if (GTIN>= 10000000) and (GTIN<= 99999999):
break
else:
print("That is invalid,try again")
在此之后,即使我在
中放入一个简单的打印命令,也没有任何内容出现答案 0 :(得分:-5)
如果你在线上提供了样本场景&#34;虽然是真的&#34;最终没有被许多人评论,只有缩进才是我所看到的改进。
for i in range(1):
while True:
try:
GTIN = int(input("Enter A 8 Digit GTIN Code: "))
except ValueError:
print("That is invalid,Try again")
continue
if (GTIN>= 10000000) and (GTIN<= 99999999):
break
else:
print("That is invalid,try again")