06-多个 and

06-多个 and

语法讲解 今天学: 逻辑运算符 and / or / not print(True and True and False) 小练习 运行下面代码后输出是什么? print(True and True

阅读更多 →
05-括号改变优先级

05-括号改变优先级

语法讲解 今天学: 逻辑运算符 and / or / not print((False or True) and False) 小练习 运行下面代码后输出是什么? print((False or T

阅读更多 →
04-and 优先级

04-and 优先级

语法讲解 今天学: 逻辑运算符 and / or / not print(False or True and False) 小练习 运行下面代码后输出是什么? print(False or True

阅读更多 →
03-not 基础

03-not 基础

语法讲解 今天学: 逻辑运算符 and / or / not print(not True) 小练习 运行下面代码后输出是什么? print(not True) 提交要求: 只提交最终输出结果,不

阅读更多 →
02-or 基础

02-or 基础

语法讲解 今天学: 逻辑运算符 and / or / not print(True or False) 小练习 运行下面代码后输出是什么? print(True or False) 提交要求: 只

阅读更多 →
01-and 基础

01-and 基础

语法讲解 今天学: 逻辑运算符 and / or / not print(True and False) 小练习 运行下面代码后输出是什么? print(True and False) 提交要求:

阅读更多 →
30-综合判断+循环

30-综合判断+循环

语法讲解 今天学: 循环语句 for / while for i in range(4): if i%2==0: print(i) 小练习 运行下面代码后输出是什么? for i in ra

阅读更多 →
29-for 累加奇数

29-for 累加奇数

语法讲解 今天学: 循环语句 for / while s=0 for i in range(1,6,2): s+=i print(s) 小练习 运行下面代码后输出是什么? s=0 fo

阅读更多 →
28-计数器步长

28-计数器步长

语法讲解 今天学: 循环语句 for / while i=0 while i<3: print(i) i+=2 小练习 运行下面代码后输出是什么? i=0 while i

阅读更多 →
27-while 嵌套

27-while 嵌套

语法讲解 今天学: 循环语句 for / while i=0 while i<2: j=0 while j<2: print(i,j) j+

阅读更多 →