Bytes

 0    4 flashcards    jakitaki
download mp3 print play test yourself
 
Question English Answer English
Prefix to create bytes
start learning
b'your text' - works for characters encoded by a single byte, code-point lies between 0 and 255 inclusively. A string containing characters other than these will lead to a syntax error.
function to convert string to bytes
start learning
encode - default as utf-8
all purpose function to convert data to bytes
start learning
bytes, requires encoding. A list of integers from 0 to 255 without encoding. With bigger integers to_bytes
function to create mutable bytes
start learning
bytearray

You must sign in to write a comment