你32,33行不会报错吗,你传进去的是字符串你需要讲传入的数该为浮点数形式
h=eval(input()) w=eval(input()) w=float(format(w,'.1f')) h=float(format(h,'.1f'))