So überprüfen Sie, ob String in Byte Formiat Pythin ist

isinstance(string, bytes)
Tense Tarsier