Where are the ampersand and vertical bar characters used in Python?

后端 未结 4 1276
借酒劲吻你
借酒劲吻你 2020-12-08 09:39

In the Wikipedia page describing short-circuit evaluation, & and | are listed as eager operators in Python. What does this mean and when are th

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 10:31

    & ----> Used to AND bitwise i.e. bit by bit

    similarly,

    | ---> used to OR bitwise

    Whenevr you find any python problem, try to use python.org, its helpful

提交回复
热议问题