Python:匹配字符串到列表项?

Mik*_*han 1 python

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或任何其他匹配时,为什么不打印"找到匹配"?

Ign*_*ams 5

因为字符串永远不会等于元组.

xy = (int(user_x), int(user_y))
Run Code Online (Sandbox Code Playgroud)