摘要:
1、and、or、not的优先级 优先级从大到小:() not and or 2、输出返回值时,x or y,x为True,则返回x print(1 or 2) 返回1 print(3 or 2) 返回3 3、输出反回值时,x and y,x为True,则返回Y( and与or 相反 ) print 阅读全文
posted @ 2018-06-09 22:22
路潇
阅读(274)
评论(0)
推荐(0)
摘要:
1、使用while循环输入 1 2 3 4 5 6 8 9 10
2、求1-100的所有数的和
3、输出 1-100 内的所有奇数
4、输出 1-100 内的所有偶数
5、求1-2+3-4+5 ... 99的所有数的和
6、用户登陆(三次机会重试) 阅读全文
posted @ 2018-06-09 22:05
路潇
阅读(252)
评论(0)
推荐(1)

浙公网安备 33010602011771号