直接上代码: # -*- coding: utf-8 -*- x=1 y=2 z=x<y #输出z的值 z #逻辑运算符 与 或 非 True & False #执行运算并输出运算结果 True | False not True True and False #输出False 以上就是所有代码。