python中struct.unpack()
时间: 2024-04-25 09:23:56 浏览: 119
在Python中,struct.unpack()函数用于将外部压缩的格式字符串进行解压,并返回一个元组作为结果。解压的数据大小必须满足格式指定的字节数。该函数的格式为struct.unpack(format, buffer)。其中,format描述了解包数据的格式,buffer是需要解压的二进制串。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [python中struct.unpack的用法](https://blog.csdn.net/gracioushe/article/details/5915900)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Python使用struct.unpack处理二进制文件](https://blog.csdn.net/qq_37189082/article/details/124653895)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [python struct.unpack和struct.pack详解](https://blog.csdn.net/eliforsharon/article/details/128545037)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文