Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created May 1, 2018 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/258fea2b9adb3d0f3698d69a63e5f8f8 to your computer and use it in GitHub Desktop.
Save Fhernd/258fea2b9adb3d0f3698d69a63e5f8f8 to your computer and use it in GitHub Desktop.
Operaciones a nivel de bytes sobre cadenas de caracteres. OrtizOL.
datos = bytearray(b'Fyodor Dostoevskyiv')
print(datos[0:6])
print(datos.startswith(b'Fyodor'))
print(datos.split())
print(datos.replace(b'Dostoevskyiv', b'Dostoevsky'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment