Python 出现TypeError: ‘>=’ not supported between instances of ‘str’ and 'int

TypeError: ‘>=’ not supported between instances of ‘str’ and 'int。How to resolve this question?

源代码
TypeError: '>=' not supported between instances of 'str' and 'int会出现:TypeError: '>=' not supported between instances of 'str' and 'int经过调试后发现:
TypeError: '>=' not supported between instances of 'str' and 'int原来是接受参数弄反了。

相关文章: