Skip to content

Commit 57676cb

Browse files
committed
unstrcut and unstruct change to ustruct
1 parent efaa518 commit 57676cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

en-us/api/pythonStdlib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@ Pack the values *v1*, *v2*, … according to the format string *fmt*. The return
15511551

15521552
* `fmt`: For the types of format characters, see the Formatted Character Table above for details
15531553

1554-
> **unstrcut.unpack(fmt, data)**
1554+
> **ustruct.unpack(fmt, data)**
15551555
15561556
Unpack from the *data* according to the format string *fmt*. The return value is a tuple of the unpacked values.
15571557

@@ -1575,7 +1575,7 @@ Pack the values *v1*, *v2*, … according to the format string *fmt* into a *buf
15751575

15761576
##### Unpack from the *data* starting at *offset* according to the format string *fmt*
15771577

1578-
> **unstruct.unpack_from(fmt, data, offset=0)**
1578+
> **ustruct.unpack_from(fmt, data, offset=0)**
15791579
15801580
Unpack from the *data* starting at *offset* according to the format string *fmt*. *offset* may be negative to count from the end of *buffer*. The return value is a tuple of the unpacked values.
15811581

zh-cn/api/pythonStdlib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ uio 模块包含其他类型的stream(类文件)对象和辅助函数。该
15671567

15681568
##### 根据格式化字符串 fmt 对数据进行解压
15691569

1570-
> **unstrcut.unpack(fmt, data)**
1570+
> **ustruct.unpack(fmt, data)**
15711571
15721572
根据格式化字符串 fmt 对数据进行解压,返回值为一个元组。
15731573

@@ -1591,7 +1591,7 @@ b'\x07\x00\x00\x00\t\x00\x00\x00'
15911591

15921592
##### 根据格式化字符串 `fmt` 解析从 `offest` 开始的数据解压
15931593

1594-
> **unstruct.unpack_from(fmt, data, offset=0)**
1594+
> **ustruct.unpack_from(fmt, data, offset=0)**
15951595
15961596
根据格式化字符串 `fmt` 解析从 `offest` 开始的数据解压,从缓冲区末尾开始计数的偏移量可能为负值。返回值是解压值的元组。
15971597

0 commit comments

Comments
 (0)