My Tech Notes
Search This Blog
Python: int to hex string
print(hex(255))
Result:
'0xff'
hex(255)[2:]
Result:
'ff'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment