【已解决】TypeError: ‘<‘ not supported between instances of ‘str‘ and ‘int‘_Python系列学习笔记
生活随笔
收集整理的這篇文章主要介紹了
【已解决】TypeError: ‘<‘ not supported between instances of ‘str‘ and ‘int‘_Python系列学习笔记
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
TypeError: ‘<’ not supported between instances of ‘str’ and ‘int’
翻譯:str類型無法與int類型比較
解決:將<兩側(cè)類型統(tǒng)一即可。
總結(jié)
以上是生活随笔為你收集整理的【已解决】TypeError: ‘<‘ not supported between instances of ‘str‘ and ‘int‘_Python系列学习笔记的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【报错】TypeError: ‘int‘
- 下一篇: python怎么实现类似#define宏