python3報錯:TypeError: can't concat bytes to str

有時會報錯這個:TypeError: Can't convert 'bytes' object to str implicitlyhtml 解決方法:使用字節碼的decode()方法。python 示例:post str = 'I am string' byte = b' I am bytes' s = str + byte print(s)   這時會報錯:TypeError: Can't co
相關文章
相關標籤/搜索