2025-09-10:仓库迁移

This commit is contained in:
2025-09-10 16:12:45 +08:00
parent e0e49b0ac9
commit 3130e336a1
146 changed files with 4066 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import base64
if __name__ == '__main__':
# 如果需要使用b64编码对二进制数据做编码和解码操作
s = b'Hello World!'
# 可以使用base64的b64encoder和decoder
a = base64.b64encode(s)
print(a)
b = base64.b64decode(a)
print(b)
# 和上一章一样如果你需要unicode需要再解码一次
a = a.decode('ascii')
print(a)