Created
January 21, 2015 10:44
-
-
Save KimBoWoon/bbb3087513773ea50e9f 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 test(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]) | |
test(Dic) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment