ICode9

精准搜索请尝试: 精确搜索
  • 【爬虫】使用xpath与lxml移除特定标签2019-03-30 11:53:00

    移除标签的两种方式 可以用xpath定位 for bad in html.xpath(".//table"): bad.getparent().remove(bad) 参考:https://stackoverflow.com/questions/7981840/how-to-remove-an-element-in-lxml 直接删除相关标签 在使用xpath获取指定标签后,直接删除。 etree.strip_elements(f

  • nginx服务器报错502 bad gateway!2019-03-27 18:50:47

    服务器进行公众号粉丝数据同步以及批量推送报错502 根据错误信息可以判定是后端的问题,502错误的原因有很多种,但总的来说就是服务器处理不过来了 1.首先查看服务器日志 1)先查nginx日志,不熟悉的可以从nginx.conf中获取error_log的路径,找到错误如下: 发现nginx进程处理的连接数不

  • 挂载失败mount: wrong fs type, bad option2019-03-13 10:42:52

    ubuntu12.04挂载远程nfs目录,出现下面错误: mount: wrong fs type, bad option, bad superblock on 192.168.xx.xx:/progs,missing codepage or helper program, or other error(for several filesystems (e.g. nfs, cifs) you mightneed a /sbin/mount.<type> helper program)In s

  • POST 400 Bad Request The request sent by the client was synt2019-03-04 10:39:29

    最近在做Web开发的时候,使用$.post提交数据,但是回调函数却没有被触发,按F12看控制台输出是:POST *** 400 Bad Request 后台是SpringMVC的,设置了断点也不会被触发。 后来查看JQuery资料了解到,$.post提交数据只有成功时才触发回调函数,于是改用$.ajax提交数据,添加error回调函数,得到错误

  • 作为QA工程师要避免的7个坏习惯2019-03-01 22:47:31

    目录 翻译正文 Bad Habit #1: Testing Things You Don’t Understand(坏习惯#1:测试你不理解的事情) Bad Habit #2: Testing Only What the Story Tells You to Test(坏习惯#2:仅测试story告诉您测试的内容) Bad Habit #3: Assuming That Odd Behavior Is Correct Behavior(坏习惯#3:

  • JavaScript编码规范2019-02-27 17:47:56

    JavaScript规范 内容列表 类型 对象 数组 字符串 函数 属性 变量 条件表达式和等号 块 注释 空白 逗号 分号 类型转换 命名约定 存取器 构造器 事件 模块 jQuery ES5 兼容性 性能 资源 哪些人在使用 翻译 JavaScript风格指南 贡献者 许可 类型 原始值: 相当于传值 string numb

  • 【leetcode】278. First Bad Version2019-02-19 20:43:35

    problem 278. First Bad Version solution1:遍历; // Forward declaration of isBadVersion API.bool isBadVersion(int version);class Solution {public: int firstBadVersion(int n) { int ver = 1; while(ver<n) { if(isBadVersion(

  • fatal: bad ownership or modes for chroot directory2019-02-12 14:55:27

    过年放假前在修改用户权限,添加了一个账户,年后回来发现几个SFTP账户无法登陆SFTP,提示WinSCP提示Authentication failure,以为账户密码错了,用passwd重置后问题依旧。然后用别的管理员帐户登陆SFTP却没有问题,于是用sudo journalctl -xe命令查看到日志信息: fatal: bad ownership or mode

  • 【Bad Practice】12306 query2019-02-09 23:38:07

                   

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有