Home > database >  Basic very basic questions
Basic very basic questions

Time:09-16

New to python, reading a book on say a& The result is 1 b or zero, then gave a=b=9 13 results appeared 9, can have a knowledge of the man answer? This is what, if feel explain too wordy, what can recommend me to see the video

CodePudding user response:

Have a good intention?

CodePudding user response:

9=1001
13=1101

9 & amp; 13 - & gt; &=do after converted into binary Boolean and

1001
1101
-- -- -- -- --
1001 - & gt; (9)

CodePudding user response:

Thank you good people,

CodePudding user response:

9:1001
Therefore 01

& The rule is: as 1 is 1, otherwise 0
So the result is 1001, and then turned back to decimal is 9.

CodePudding user response:

Upstairs is

CodePudding user response:

reference 4 floor gypsy song response:
9:1001
Therefore 01

& The rule is: as 1 is 1, otherwise 0
So the result is 1001, and then turned back to decimal is 9,

See along while feeling that there is a problem, the original is beat 13 to 16,
  • Related