摘要:
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 阅读全文
摘要:
PEP 8是什么? PEP 8 is a coding convention, a set of recommendation, about how to write your Python code more readable. PEP 8是一种编码规范和建议,关于如何编写您的Python代码,使 阅读全文
摘要:
Python是什么?使用Python的好处是什么? 答: Python is a programming language with objects, modules, threads, exceptions and automatic memory management. The benefits 阅读全文
摘要:
一、前言 不同程序之间实现通信的方法? A.通过不同程序之间建立socket,实现通信。实际应用适用于使用broker,如RabbitMQ,ZeroMQ. B.通过Json,Pickle,利用文件的写入和读取实现不同程序之间的通信,但是效率低。 C.通过在不同的程序之间加入一个中间代理程序,中间代理 阅读全文
摘要:
符串如果直接全部都是utf-8编码,每个汉字有3个字节,每个英文有1个字节,1 bytes=8 bit。 先将字符串通过ord()转换为ascii码,再通过bin()将其转换为二进制。 阅读全文