摘要:
while循环语句 while 条件 : age = 50guss_age = int(input("请输入您猜测的年龄:"))while guss_age !=age: if guss_age > age: print("您猜大了:请重试!") else: print("您猜小了:请重试!") g 阅读全文
posted @ 2020-05-09 18:10
青衣少年
阅读(106)
评论(0)
推荐(0)
摘要:
短路原则 对于and 如果条件1为假,and后面的条件短路,不用判断一定为假 对于or,如果条件1为真,or 后面的条件短路,不用判断一定为真 not not true or false and not true true not not true为真,or的短路原则(false and not t 阅读全文
posted @ 2020-05-09 10:15
青衣少年
阅读(317)
评论(0)
推荐(0)

浙公网安备 33010602011771号