[問題] 如何自定 Base64 Table
請問用內建的 Library 可以自訂 Base64 Table 嗎 ?
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ <- 這可以不使用準備的嗎 ?
>>> import base64
>>> e = base64.b64encode('this is a book')
>>> e
'dGhpcyBpcyBhIGJvb2s='
>>> base64.b64decode(e)
'this is a book'
>>> base64.decodestring(e)
'this is a book'
>>>
--
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.135.121.210
→
12/20 15:14, , 1F
12/20 15:14, 1F
→
12/20 22:10, , 2F
12/20 22:10, 2F
→
12/20 22:32, , 3F
12/20 22:32, 3F
推
12/20 22:56, , 4F
12/20 22:56, 4F
推
12/21 00:33, , 5F
12/21 00:33, 5F
→
12/22 11:44, , 6F
12/22 11:44, 6F
→
07/03 18:32, , 7F
07/03 18:32, 7F
Python 近期熱門文章
PTT數位生活區 即時熱門文章