Skip to content

Commit

Permalink
add bytes and str convert
Browse files Browse the repository at this point in the history
  • Loading branch information
llinjupt committed Jul 18, 2019
1 parent 62d5a32 commit b77ef87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added imgs/bsconvert.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1613,6 +1613,13 @@ bytes 和字符串转换
bytes() 中的编码意为对参数进行编码得到 bytes 对象,str() 中的编码参数意为第一个参数是 bytes 类型的 buffer,编码参数指定了它的解码,在 str() 函数内部使用它对 buffer 进行解码得到 str 对象。
.. figure:: imgs/bsconvert.png
:scale: 50%
:align: center
:alt: encodes
字符串和字节序列转换
类字符串操作
~~~~~~~~~~~~~~
Expand Down

0 comments on commit b77ef87

Please sign in to comment.