Working with Binary Data in Python 3

所在平台: Udemy

课程主页: https://www.udemy.com/course/working-with-binary-data-in-python-3/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**Python 3 二进制数据处理课程总结** 本课程旨在教授如何使用 Python 3 处理二进制数据。理解字节和字节流是所有编程的基础,无论您是 Web 开发者、数据科学家、游戏开发者、安全分析师、逆向工程师还是渗透测试人员,掌握这一技能都至关重要。 **核心内容包括:** * **字节与字节流操作:** 学习读写字节到缓冲区流和磁盘,这对于处理任何类型的二进制文件或网络通信都非常有用。 * **数据格式化:** 掌握将字节格式化为十六进制或二进制输出,以便查看和分析。 * **Python 对象与字节转换:** 学习如何在 Python 对象和原始字节之间进行转换,这对于将对象存储到磁盘或加载异构系统上的二进制数据至关重要。 * **字节编码与解码:** 学习字节与 Python 可用对象之间的转换,例如创建游戏存档文件或在网络上传输数据。 * **结构体打包与解包:** 学习使用 `struct` 模块打包和解包数据,例如创建 TCP/IP 数据包头部或解析专有文件格式。 * **位运算:** 掌握 AND、OR、XOR、按位取反等位运算,这在网络掩码、加密等领域有广泛应用。 * **进制转换:** 学习整数、字节、二进制字符串和十六进制字符串之间的互相转换。 * **文件操作:** 学习以字节模式读写文件,获取文件指针位置,以及获取文件元数据。 * **编码标准:** 了解 ASCII、UTF-8 和 Base64 等编码方式,并学会如何进行编码和解码。 通过本课程的学习,学员将能够高效地处理各种底层数据,为更复杂的编程任务打下坚实基础。

课程评论(0条)

课程详情

Learn how to work with binary data using Python 3. Everything in a computer is binary and bytes under the hood, so it is critical to understand how to work with data at this raw level.Knowing how to manipulate binary data at and byte streams is an essential skill for any type of programming you do with Python from web developers to data scientists to game developers to security analysts and engineers, malware reverse engineers, and penetration testersSome of the things you will learn include:Reading write bytes to buffer streams and disk which is useful for working with any kind of binary file or network communicationFormatting output of bytes so you can view it as hexadecimal or even binary format.Converting between Python objects and raw bytes which is useful for storing objects to disk or loading up binary data that was intended for a different computer systemEncoding and decoding bytes which lets you switch between raw bytes that you can store and transfer and usable objects in Python. For example, creating a save game file or transmitting data over the network.Packing and unpacking structs; For example, creating a TCP/IP packet header or extracting data from proprietary file formats.Performing bitwise operation like AND, OR, XOR, and ones copmlement which is useful for a variety of tasks like network masking and cryptography.Course syllabusIntroCourse overviewBasics of bytesBytes typeBytearray typeBytesIO classFormatting outputBitwise operationsANDORXOROnes complementBit shiftingConversionIntegers BytesBinary stringsHexadecimal stringsWorking with filesRead and write bytesSeek positionGet metadata about a fileStruct packingWhat is struct packing?Struct packingStruct unpackingEncodingASCIIUTF-8Base64

课程标签

0人关注该课程

主题相关的课程