- 博客(4)
- 收藏
- 关注
原创 python3 获取当前时间;格式化输出;获取当前时间戳;时间戳转格式化输出;字符串转时间戳
python3 获取当前时间;格式化输出;获取当前时间戳;时间戳转格式化输出;字符串转时间戳
2022-07-25 20:23:24
645
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 bytes b = bytes.fromhex(h) bytes to hexstr h = b.hex() str to bytes to hexstr h =
2020-06-11 20:17:42
1709
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅