Skip to content

Instantly share code, notes, and snippets.

@Mayank-1234-cmd
Created March 29, 2021 16:30
Show Gist options
  • Save Mayank-1234-cmd/449b734fb0f6ed8135c6f81c5f7939af to your computer and use it in GitHub Desktop.
Save Mayank-1234-cmd/449b734fb0f6ed8135c6f81c5f7939af to your computer and use it in GitHub Desktop.
bytesf=b'bytes string'
bytesf=str(bytesf).replace("b'","",1).replace("'","",str(bytesf).count("'"))
print(bytesf) # returns bytes string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment