Hi everyone, I have this code:
data = data.split('&')
And I get the following error:
data = data.split ('&') TypeError: type str does not support API buffer
How to break my line?
data is a bytes object. You can use a different bytes value to separate it, you can use the bytes literal (starting with the b prefix) to create it:
data
bytes
b
data.split(b'&')
Source: https://habr.com/ru/post/982258/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/982253/how-to-separate-fragments-to-different-files-in-android-studio&usg=ALkJrhiO10IDCWEkubMQKApAQIsy6lIyHgFacebook Ads Api Request C # 273 requires the user to be an administrator - facebookAndroid Studio 1.1, simple test setup junit - androidGrunt-shell saves output command as a variable - gitRails, Windows and HTTPS - windowsInstall OpenSSL with Ruby for eventmachine on Windows 7 x86 - ruby | fooobar.comMySQL database layout in Python - pythonTwowayview automatically adds padding when scrolling - androidthin server / eventmachine rail on windows does not work with user certificate - windowsHow to assign foreignkey in DynamoDB? - amazon-dynamodbAll Articles