if not isinstance(x, int) or not isinstance(x, float)
赞同,传int或者float进去会报参数错误
int或float,只要满足其中一个条件就是True,一真则真,假假才假