用自己电脑的python3.6运行都能正确输出,在这里的python3.5输出总是不对,这到底是是为什么?难道是版本的差异?
class solution:
def reverseOutput(self,x):
if x >= 0:
print (x % 10,end = "")
x = x // 10
if x != 0:
return self.reverseOutput(x)
else:
print ("\n")
else:
print('-',end ="")
self.reverseOutput(-x)