- 博客(1)
- 收藏
- 关注
原创 Python 内置函数format字符格式化
Python 内置函数format字符格式化 例如:将int型数值装换成要求宽度的hex型字符串 def to_hex_string(number: int, byte_cnt): """ convert the number to hex string which length is byte_cnt bytes :param number: the vaulee need be converted, eg 3 :param byte_cnt: byte count.
2021-07-25 20:01:41 93
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人