a = []
for i in range(15):
# print(bin(i)[2:])
a.append(bin(i)[2:].zfill(8))
print(a)
b = [''.join(list(i)[::-1]) for i in a]
print(b)
b = [int(str(i),2) for i in b]
print(b)
我和我的好朋友、寶貝學生互動及學習使用Blogger的地方。
a = []
for i in range(15):
# print(bin(i)[2:])
a.append(bin(i)[2:].zfill(8))
print(a)
b = [''.join(list(i)[::-1]) for i in a]
print(b)
b = [int(str(i),2) for i in b]
print(b)
沒有留言:
張貼留言