Can't convert 'int' object to str implicitly提示解决方法

eg:python class Car: def __init__(self, newWheelNum, newColor): self.wheelNum = newWheelNum self.color = newColor def __str__(self): msg = "嘿。。。个人颜色是" + self.color + "我
相关文章
相关标签/搜索