2018年10月6日

Python的if....else嵌套

摘要: score = 20if score >= 60: print("你已经及格") if score >= 80: print("你很优秀") else: print("你只是一般般")else: print("不及格") if score < 30: print("学渣") else: ... 阅读全文

posted @ 2018-10-06 15:30 尚书房行走 阅读(5603) 评论(0) 推荐(0) 编辑

Python的if....else

摘要: a = 5b = a ==1if b: print("说明a是1") print("说明a真的是1")else: print("说明a不是1")print("程序结束") 阅读全文

posted @ 2018-10-06 15:15 尚书房行走 阅读(158) 评论(0) 推荐(0) 编辑

导航