0
나는 ValueError를예외
while True:
try:
input1,input2= input("Enter the Lat and Long of the source point separated by a comma eg 50,30").split(',')
break
except ValueError:
print ("please Use a Comma")
input1,input2 = input("Enter the Lat and Long of the source point separated by a comma eg 50,30").split(',')
을 사용자가 올바른 입력을 제공하지만 사용자가 잘못된 입력을 제공하는 경우 첫 번째 루프 후 다시 프로그램이 충돌하고 나에게 줄 것이다 때까지 루프에이 코드를 얻으려고