Created
May 1, 2018 13:23
-
-
Save Fhernd/258fea2b9adb3d0f3698d69a63e5f8f8 to your computer and use it in GitHub Desktop.
Operaciones a nivel de bytes sobre cadenas de caracteres. OrtizOL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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