How to do a bitwise NOR Gate in Python (editing python maths to work for me)
问题 Say I was to write this: a=01100001 b=01100010 c=01100011 d=01100100 e=01100101 each letter resembles the given numbers now how would I deal with the resembling values: Python would want to do this: a + b = 2200011 but what I want it to do is this if 0 and 0 are attempted to be added together show 1 if 1 and 0 are attempted to be added together show 0 if 0 and 1 are attempted to be added together show 0 if 1 and 1 are attempted to be added together show 0 What I wish to do is a + b = 10011100