摘要: 找了一圈全是ubuntu的解决方案、真的是一口老血、、、 brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf python3 qt libevent 阅读全文
posted @ 2017-11-06 19:51 izhangleinb 阅读(2914) 评论(2) 推荐(0) 编辑
摘要: 环境:py3.5 解决方案:py3中没有iteritems,iteritems直接改成items就可以了。 python字典的items方法作用:是可以将字典中的所有项,以列表方式返回。如果对字典项的概念不理解,可以查看Python映射类型字典基础知识一文。因为字典是无序的,所以用items方法返回 阅读全文
posted @ 2017-10-11 09:52 izhangleinb 阅读(1629) 评论(0) 推荐(0) 编辑
摘要: 运行环境Mac Python 3.5.2 Q: http_response = """\ HTTP/1.1 200 OK Hello, World! """ client_connection.sendall(http_response) TypeError: a bytes-like object 阅读全文
posted @ 2017-09-25 10:04 izhangleinb 阅读(795) 评论(0) 推荐(0) 编辑