AttributeError: 'str' object has no attribute '__buffer__' 出现如上错误的原因是: 解决办法:找到'hello world',在前面加b,即是b'hello world', 参考:https://blog.csdn.net/jing16337305/article/details/80351460