python 全站开发3

基本条件语句,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')

猜你喜欢

转载自www.cnblogs.com/asdccc/p/9067050.html
今日推荐