摘要: pickling 和unpickling是什么? Pickle module accepts any Python object and converts it into a string representation and dumps it into a file by using dump f 阅读全文
posted @ 2017-08-22 13:44 Zoe233 阅读(705) 评论(0) 推荐(0) 编辑
摘要: PEP 8是什么? PEP 8 is a coding convention, a set of recommendation, about how to write your Python code more readable. PEP 8是一种编码规范和建议,关于如何编写您的Python代码,使 阅读全文
posted @ 2017-08-22 11:58 Zoe233 阅读(457) 评论(0) 推荐(0) 编辑
摘要: Python是什么?使用Python的好处是什么? 答: Python is a programming language with objects, modules, threads, exceptions and automatic memory management. The benefits 阅读全文
posted @ 2017-08-22 11:18 Zoe233 阅读(1404) 评论(0) 推荐(0) 编辑
摘要: 一、前言 不同程序之间实现通信的方法? A.通过不同程序之间建立socket,实现通信。实际应用适用于使用broker,如RabbitMQ,ZeroMQ. B.通过Json,Pickle,利用文件的写入和读取实现不同程序之间的通信,但是效率低。 C.通过在不同的程序之间加入一个中间代理程序,中间代理 阅读全文
posted @ 2017-08-22 10:42 Zoe233 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 符串如果直接全部都是utf-8编码,每个汉字有3个字节,每个英文有1个字节,1 bytes=8 bit。 先将字符串通过ord()转换为ascii码,再通过bin()将其转换为二进制。 阅读全文
posted @ 2017-08-22 09:55 Zoe233 阅读(2189) 评论(0) 推荐(0) 编辑