def isOdd(n): if n%2==1: return True else: return False
可以简写成
def isOdd(n): if n%2: return True return False