会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Snowbeer
博客园
首页
新随笔
管理
2018年3月15日
Python报错TypeError: '<' not supported between instances of 'str' and 'int'
摘要: 报错内容: 分析:input()返回的数据类型是str,不能直接和整数进行比较,必须先把str换成整数,使用int()方法 因此,将input变量转换为int型即可。 或者
阅读全文
posted @ 2018-03-15 10:33 snowbeer
阅读(73846)
评论(1)
推荐(0)
公告