我要怎么修改才能输出呢'<' not supported between instances of 'float' and 'str'

'<' not supported between instances of 'float' and 'str'。
图一是stus9,图二图三是我对他离散化后出了bug
555555该怎么改才正确呢

img

img

img

将str类型的变量用float()包括