How to use hex() without 0x in Python?

后端 未结 5 1794
失恋的感觉
失恋的感觉 2020-11-28 04:24

The hex() function in python, puts the leading characters 0x in front of the number. Is there anyway to tell it NOT to put them? So 0xfa230

5条回答
提交回复
热议问题