python can t multiply sequence by non-int of type float 解决方案:把出问题的对象变量用float(变量)强转一下即可,这样两个相同类型的float变量才可以相乘,不会报错。