Hi all I have this code:
data = data.split('&')
And I get the following error:
data = data.split('&') TypeError: Type str doesn't support the buffer API
How to split my string?
data
is a bytes
object. You can only use another bytes
value to split it, you can use a bytes
literal (starting with the b
prefix) to create one:
data.split(b'&')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With