原文: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