while 1:
dic = {} #empty dictionary which will be used for storing all the data
dic[raw_input("Enter the value you want to store: ")] = input("Enter the access key of a value: ")
ans = raw_input("Exit:e ; Store another variable : s; Acces a variable: a")
if ans=="e":
break; #exit the main loop
elif ans == "s":
continue;
elif ans=="a":
pass;
당신은 input()
대신 raw_input()
을 사용하는파이썬은
** ** do do es 구문 오류가 발생합니까? 오류 메시지의 전체 사본은 무엇입니까? 무슨 파이썬 버전? Python 2.7에서 오류를 재현 할 수 없습니다. –
@ FrédéricHamidi : 구문 오류의 원인이 아니기 때문에 지금은 무시했습니다. –
imstake 님, 죄송합니다. –