This commit is contained in:
2022-11-10 11:00:25 +01:00
parent e8cfcdfda4
commit bbfbd8fdce
5 changed files with 84 additions and 13 deletions

13
python/5/c2byte.py Normal file
View File

@@ -0,0 +1,13 @@
r = ''
x = ord('a')
while ((x/2) != 0):
if ((x % 2) == 0):
r = r+'0'
else:
r = r+'1'
x = x / 2
print(c2byte('a'))