Anyway, you can call eval("b'x\x9c\xb4'") and get your result b'xx9cxb4' if you don't find any other solution. But eval usage isn't recommended in the common case and it will be a bad practice.
eval("b'x\x9c\xb4'")
b'xx9cxb4'
eval
1.4m articles
1.4m replys
5 comments
56.9k users