In [1]: b'&\t\x07\x1c\xa8\xcd\x85\xffRmfy\xe5\xd2_\xd7\xb4)\xad\xd2'[0]
Out[1]: 38
In [2]: for b in b'&\t\x07\x1c\xa8\xcd\x85\xffRmfy\xe5\xd2_\xd7\xb4)\xad\xd2':
...: print(b)
...:
38
9
7
28
168
205
133
255
82
109
102
121
229
210
95
215
180
41
173
210
In [3]: for b in b'&\t\x07\x1c\xa8\xcd\x85\xffRmfy\xe5\xd2_\xd7\xb4)\xad\xd2':
...: print(hex(b))
...:
0x26
0x9
0x7
0x1c
0xa8
0xcd
0x85
0xff
0x52
0x6d
0x66
0x79
0xe5
0xd2
0x5f
0xd7
0xb4
0x29
0xad
0xd2
In [1]: x = 'Иван Иванович Пупки'
In [2]: parts = x.split()
In [3]: parts[0] + ' ' + parts[1][0] + '.'
Out[3]: 'Иван И.'
In [4]: parts[0].strip() + ' ' + parts[1].strip()[0] + '.'
Out[4]: 'Иван И.'
In [1]: s = {f"https://something.asdfqwerasdfasfgqwefasdfasdf/{i}" for i in range(7748982)}
In [2]: import sys
In [3]: sys.getsizeof(s)
Out[3]: 268435680
In [4]: sum(sys.getsizeof(x) for x in s)
Out[4]: 797034036
all_urls = set(open("lots.txt").read().splitlines())
done = set(open('nohup.txt').read().splitlines())
with open("upd_lots.txt", "w") as ul:
for url in all_urls - done:
ul.write(url + '\n')
In [2]: D = (11.180339887498949+0j)
In [3]: complex(round(D.real), round(D.imag))
Out[3]: (11+0j)