错误描述:TypeError: '>' not supported between instances of 'str' and 'int'
整型与字符串类型不能一起计算,前边定义一下int
score=int(input("请输入分数"))
版权声明:本文为weixin_42505757原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
错误描述:TypeError: '>' not supported between instances of 'str' and 'int'
整型与字符串类型不能一起计算,前边定义一下int
score=int(input("请输入分数"))