判断浮点数使用isinstance(判断对象,类型)函数,函数有两个参数使用如下
n=eval(input()) if isinstance(n,float): print('是浮点数') else: print('不是浮点数')