python条件判断符的使用条件

img


我想请教大家为什么该段代码在IDLE上运行后会出错
为什么有些条件判断符在str和float的实例之间不支持

input返回的是字符串,不是float
改为
PM = float(input())

PM = eval(input())
转换下