一个基本的八位数字字符串到八位二进制数

a basic eight number string to eight bit binary number

8个字符(0和1)的字符串->转成8位二进制数->进行二进制运算->转回8 0/1的字符串

>>> the_entry = "00000000"
>>> the_binary number = 8CharacterStringIntoThe8CharacterBinaryNumber(the_entry)
>>> the_binary_number << 1 # any binary operation
>>> the_result_string = EightCharacterBinaryNumberIntoEightCharacterString(the_binary_number)

这个太简单了,我拒绝自己写方法,但是显然,在180000个可能的结果中,我找不到与我的问题相关的那个。

你有魔法吗??

这些是简单的基本操作:

entry = "00000000"
number = int(entry, 2)
result = f"{number:08b}"