Python Statements

if

if 语句可以用单行语句

if x < 0:
    print('x is less than zero')
elif x = 0:
    print('x equals zero')
else:
    print('x is greater than zero')