11 lines
265 B
Python
11 lines
265 B
Python
#!/usr/bin/python
|
|
|
|
in1 = "10:a2:a3:2d:60:2e:43:0f:9d:a1:12:5b:fa:1c:36:4e:6c:e2:de:e0:57:3d:8a:69:5a:24:fc:e8:f6:f3:f5:ce"
|
|
in1_bytes = [int(x, 16) for x in in1.split(":")]
|
|
print(in1_bytes)
|
|
print(len(in1_bytes))
|
|
|
|
in2 = in1.replace(":", "")
|
|
d = int(in2, 16)
|
|
print(d)
|