linux 忘记root密码 如果忘记了linux的root密码, 有两种比较通用的方式来修改 使用grub 重启系统 进入grub菜单: 在启动时,点击e进入详细设置;将光标移动...Read More
local_offer #linux
java中override与overload的区别 override(重写,覆盖) 方法名、参数、返回值相同。 子类方法不能缩小父类方法的访问权限。 子类方法不能抛出比父类方法更多的异常(但子类方法...Read More
local_offer #java
linux下执行脚本出现报:syntax error: unexpected end of file 这是因为从Windows上拷贝过去的文件,会由于Windows与linux的回车和换行表示方法不一致导致的,可以通过执行dos2unix sh...Read More
local_offer #linux
java中的先赋值再定义 如下代码 public class MyTest{ { value = 3; System.out.println("函数块"); } MyTest(){ System.out.println("...Read More
Python 讨厌的MemoryError 在用Python处理大数据时,本来16G的内存,内存还没使用四分之一就开始报MemoryError的错误,后来才知道32bit的Python...Read More
local_offer #python
pycurl https error: unable to get local issuer certificate 在 pycurl 访问 https 链接时可能会报: pycurl.error: (60, ‘SSL certificate problem: unable to get local issuer certificate’) 错误一个比较好的解决方法是: import pycurl import certifi curl = pycurl.Curl() curl.setopt(pycurl.CAINFO, certifi.where()) curl.setopt(pycurl.URL, 'https://www.quora.com') curl.perform()...Read More
local_offer #python
pycurl 快速开始指南 获取网络资源 安装好PycURL之后,我们就可以执行一些网络操作了。最简单的是通过一个网站的URL获取它的相关资源。使用PycURL执行一个网...Read More
local_offer #python