TypeError: float() argument must be a string or a real number, not 'NoneType'检查参数都是符合要求的,为什么还报错啊
传入的值为none所以会报异常,你print一下float里面的变量是不是none