w h是字符串,要转换
MBI=float(w)/float(h)**2
或者
w,h= map(float, input().split())
w,h=input().split() w = int(w) h = int(h) MBI = w/(h**2)