基本条件语句,if 语句
1格式
if 1 = =1 1:
print('111')
else:
print('222')
# 注释 1 =为赋值 , = = 比较 ,!= 表示不等于
#多if语句
int = raw_input ('usem‘)
if int !=1:
print ('alse' )
else:
print('13')
if int = = 2:
print('123')
else:
print('1111')
基本条件语句,if 语句
1格式
if 1 = =1 1:
print('111')
else:
print('222')
# 注释 1 =为赋值 , = = 比较 ,!= 表示不等于
#多if语句
int = raw_input ('usem‘)
if int !=1:
print ('alse' )
else:
print('13')
if int = = 2:
print('123')
else:
print('1111')