单项选择题

在Python中,如何检查一个变量是否是数字?()

A.isinstance(var,(int,float))
B.type(var)in (int,float)
C.var.isnumeric()
D.A和B都对