原文:Python报错TypeError: '<' not supported between instances of 'str' and 'int'

报错内容: 分析:input 返回的数据类型是str,不能直接和整数进行比较,必须先把str换成整数,使用int 方法 因此,将input变量转换为int型即可。 或者 ...

2018-03-15 10:33 1 34057 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM