摘要:
逻辑与或非用的是and or not。 除法即使整除结果也是浮点数 地板除//结果一定是整数。 内存中的字符串是Unicode编码,str.encode('utf-8 or ascii')将class str为class bytes。反之用bytes.decode('utf-8 or ascii') 阅读全文
摘要:
字节序转换(hton) #include <netinet/in.h> unsigned long int htonl(unsigned long int hostlong); unsigned short int htons(unsigned short int hostshort); unsig 阅读全文