python if语句
#if elif else条件判断语句,if语句嵌套,注意缩进 a = 21 if a>1 and a<=15: print("是的") elif a >15 and a<20: print("错的") else: a >20 and a<30 print("哈哈")
标签:
python if语句
python if语句
#if elif else条件判断语句,if语句嵌套,注意缩进 a = 21 if a>1 and a<=15: print("是的") elif a >15 and a<20: print("错的") else: a >20 and a<30 print("哈哈")