运算符

  • 算术运算符
  1. +    -    *    /    //    %    **
  2. 注:/ ------>浮点型       // ------>整型     ** ------>幂
  • 赋值运算符

    =    +=    -=    *=     /=    **=   //=

  • 比较运算符

    <    >    <=    >=   ==    !=

  • 逻辑运算符
  1. or    and    not
  2. 注:True  or  ------>True,不再继续走下去
  3. 注:False and ------>False,不再继续走下去
  • 成员运算符

    in    not in

  • 身份运算符

    is    is not

原文地址:https://www.cnblogs.com/SakuraYuanYuan/p/10220148.html