📅  最后修改于: 2022-03-11 14:46:30.527000             🧑  作者: Mango
use isinstance(x, tuple), where x is the variable.
x = 2, 2
print(isinstance(x, tuple))
#Expected: True
y = 2
print(isinstance(y, tuple))
#Expected: False