\x03\x04\x14\x00\x06
и т.д. Когда я прохожусь по нему циклом, то получаю какие-то числа. Например,for i in file.read():
print(i)
80
125
0
...
data = [80,125,0]
with open("newfile.txt", "w") as f:
f.writelines((f"{x}\n" for x in data))
data = [80,125,0]
with open("newfile.txt", "w") as f:
f.write("\n".join(map(str, data)))
data = [80,125,0]
with open("newfile.txt", "w") as f:
print(*data, file=f, sep='\n')