Discuss / Python / get_grade函数报错

get_grade函数报错

Topic source

if 表达式中if self.score>=90 运行出现TypeError: unorderable types: str() >= int(),改成int(self.score)就好,咋回事

BrcNkeepSo-So

#2 Created at ... [Delete] [Delete and Lock User]

初始化score的时候等号后边加引号了?


  • 1

Reply