province = ["京","津","冀","晋","蒙","辽","吉","黑","沪","苏",
"浙","皖","闽","赣","鲁","豫","鄂","湘","粤","桂",
"琼","渝","川","黔","滇","藏","陕","甘","青","宁",
"新","台","港","澳"]
a = 0
b = 0
c = 0
d = 0
e = 0
f = 0
print("请你心中默想一个地方,然后回答下面几个小问题,我就能猜到你想去哪里了^-^")
A = input("京,冀,蒙,吉,沪,浙,闽,鲁,鄂,粤,琼,川,滇,陕,青,新,港 有没有?:\n")
if A == "没有":
a = 0
if A == "有":
a = 1
B = input("津,冀,辽,吉,苏,浙,赣,鲁,湘,粤,渝,川,藏,陕,宁,新,澳 有没有?:\n")
if B == "没有":
b = 0
if B == "有":
b = 2
C = input("晋,蒙,辽,吉,皖,闽,赣,鲁,桂,琼,渝,川,甘,青,宁,新 有没有?:\n")
if C == "没有":
c = 0
if C == "有":
c = 4
D = input("黑,沪,苏,浙,皖,闽,赣,鲁,黔,滇,藏,陕,甘,青,宁,新 有没有?:\n")
if D == "没有":
d = 0
if D == "有":
d = 8
E = input("豫,鄂,湘,粤,桂,琼,渝,川,黔,滇,藏,陕,甘,青,宁,新 有没有?:\n")
if E == "没有":
e = 0
if E == "有":
e = 16
F = input("台,港,澳 有没有?:\n")
if F == "没有":
f = 0
if F == "有":
f = 32
print("你心中所想的省是:\t\n",province[a+b+c+d+e+f-1],"\n我是不是很厉害*-*")
*****************************请你心中默想一个地方,然后回答下面几个小问题,我就能猜到你想去哪里了^-^京,冀,蒙,吉,沪,浙,闽,鲁,鄂,粤,琼,川,滇,陕,青,新,港 有没有?:没有津,冀,辽,吉,苏,浙,赣,鲁,湘,粤,渝,川,藏,陕,宁,新,澳 有没有?:没有晋,蒙,辽,吉,皖,闽,赣,鲁,桂,琼,渝,川,甘,青,宁,新 有没有?:有黑,沪,苏,浙,皖,闽,赣,鲁,黔,滇,藏,陕,甘,青,宁,新 有没有?:有豫,鄂,湘,粤,桂,琼,渝,川,黔,滇,藏,陕,甘,青,宁,新 有没有?:有台,港,澳 有没有?:没有你心中所想的省是: 甘 我是不是很厉害*-* |