Pyhton标准模块logging

GetLogger
GetLogger() returns a reference to a logger instance with the specified name if it is provided, or root if not. The names are period-separated hierarchical structures. Multiple calls to getLogger() with the same name will return a reference to the same logger object.

Read more

Python读写json

读写中文的json数据,可以用Python中的json库来进行操作。读取可以使用json.load

Read more

Pyhton 显示时间

Python显示当前时间

可以用Pyhton提供的time模块来实现

Read more

HTTP协议下的分段下载

在 HTTP 协议下分段下载文件

假如一个文件有1000个字节,那么其范围就是0-999,则:
Range: bytes=500- 表示读取该文件的500-999字节,共500字节。
Range: bytes=500-599 表示读取该文件的500-599字节,共100字节。
Range还有其它几种写法,但上面这两种是最常用的,对于断点续传也足矣了。如果HTTP请求中包含Range字段,那么服务器会返回206(Partial Content),同时HTTP头中也会有一个相应的Content-Range字段,类似下面的格式:

Read more

Xshell连接Ubuntu

Windows环境下,在用Xshell连接VM里安装的Ubuntu16的时候连接不上。解决方法如下:

Read more

VMware无法打开

vmware安装无法打开内核设备 \.\Global\vmx86: 系统找不到指定的文件

按照以下步骤开启相应的服务就好

Read more
Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×