- 博客(4)
- 收藏
- 关注
原创 python3 获取当前时间;格式化输出;获取当前时间戳;时间戳转格式化输出;字符串转时间戳
python3 获取当前时间;格式化输出;获取当前时间戳;时间戳转格式化输出;字符串转时间戳
2022-07-25 20:23:24 471 1
原创 python3.6 hexstr、bytes、str相互转换
1 hexstr、bytes、str相互转换h:十六进制编码数字字符串b:字节字符串s: 字符串Str to bytes:bytes(s, encoding = “utf8”)str.encode(s)bytes to str:str(b, encoding = “utf-8”)bytes.decode(b)hexstr to bytesb = bytes.fromhex(h)bytes to hexstrh = b.hex()str to bytes to hexstrh =
2020-06-11 20:17:42 1501
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人