2024-05-04 15:22:03 发布
网友
在python2.7中,我的代码中出现了意外的无限循环,但在python3.5中却给出了错误消息,这是什么原因呢?你知道吗
python3.5给出了TypeError: unorderable types: str() > int(),我应该如何解决它?你知道吗
TypeError: unorderable types: str() > int()
condition = '2' while condition > 5: print 'test'
您试图比较'2'(a ^{})和5(an ^{})。您应该声明不带引号:
'2'
5
condition = 2
您试图比较} )和} )。您应该声明不带引号:
'2'
(a ^{5
(an ^{相关问题 更多 >
编程相关推荐