问题
I'm trying to define a method similar to the method max but I get an error for an expected indentation. I'm not exactly sure what is wrong with the code... I need help solving this.
def biggest(a,b,c):
def bigger(a,b):
if a > b:
output = a
else:
output = b
if output > c:
return output
else:
return c
回答1:
You've mixed up tabs and spaces. Use python -tt
to verify.
来源:https://stackoverflow.com/questions/10279359/indentation-error