cords = []
for y in range(10):
for x in range(10):
cords.append((x, y))
print cords
print cords[11]
user_x=raw_input("X: ")
user_y=raw_input("Y: ")
xy = "("+user_x+", "+user_y+")"
print xy
if xy in cords:
print "Found Match"
Run Code Online (Sandbox Code Playgroud)
我的问题是,当给出1和1或任何其他匹配时,为什么不打印"找到匹配"?