mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
#9730: fix example.
This commit is contained in:
parent
2379877246
commit
134c35b191
1 changed files with 2 additions and 2 deletions
|
|
@ -157,12 +157,12 @@ The legacy interface:
|
|||
An example usage of the module:
|
||||
|
||||
>>> import base64
|
||||
>>> encoded = base64.b64encode('data to be encoded')
|
||||
>>> encoded = base64.b64encode(b'data to be encoded')
|
||||
>>> encoded
|
||||
b'ZGF0YSB0byBiZSBlbmNvZGVk'
|
||||
>>> data = base64.b64decode(encoded)
|
||||
>>> data
|
||||
'data to be encoded'
|
||||
b'data to be encoded'
|
||||
|
||||
|
||||
.. seealso::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue