Created
January 20, 2015 13:07
-
-
Save KimBoWoon/e0ace858a8a333437c8e to your computer and use it in GitHub Desktop.
심리테스
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'user' | |
q2y = {"작작먹어": "end"} | |
q2n = {"채소 좀 먹어": "end"} | |
q3y = {"고기 좀 먹어": "end"} | |
q3n = {"아무거나 좀 먹어": "end"} | |
q1y = {"고기를 먹을때 채소랑 같이 먹는가? (y/n)": [q2y, q2n]} | |
q1n = {"당신은 채소를 좋아합니까? (y/n)": [q3y, q3n]} | |
Dic = {"당신은 고기를 좋아하는가? (y/n)": [q1y, q1n]} | |
def asdf(dic): | |
string = list(dic.keys()) | |
value = list(dic.values()) | |
print(string[0]) | |
if (value[0] == "end"): | |
return | |
userInput = input("입력 ") | |
if (userInput == 'y'): | |
asdf(dic[string[0]][0]) | |
elif (userInput == 'n'): | |
asdf(dic[string[0]][1]) | |
asdf(Dic) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment