>>> from base64 import b64encode
>>> from os import urandom
>>> b64encode(urandom(32)).decode('utf-8')
'2owZqn8Qo0+3yqfvzvISq98/gB3OS3BWl3DJFBPsLgQ='
>>>
>>> type(os.linesep)
<class 'str'>
>>> bytes(os.linesep, 'ascii')
b'\n'
ZhangZhihui's Blog |
|
||
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |