摘要: 先去看 将selinux 的值设置成disabled - python,菜鸟 - 博客园 (cnblogs.com) 在看 ping: www.baidu.com: 未知的名称或服务 - python,菜鸟 - 博客园 (cnblogs.com) 作者:小辉 1.2.2 初始化操作 关闭防火墙与和核 阅读全文
posted @ 2022-09-13 18:35 python,菜鸟 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 作者:熊小辉 // 1.创建 数组(Array):是一组的数据的集合 // 2.利用new 创建数组 // 3.数组可以放各种类型 // 4.必须要逗号分开 // 5.存放数组数据的叫,数组元素 var bhu = new Array() // 6.使用数组面量方式创建数组 var dsfsdg = 阅读全文
posted @ 2022-09-13 11:25 python,菜鸟 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 菜鸟:小辉 问题: 192.168.213.120_controller.pp: [ ERROR ] Applying Puppet manifests [ ERROR ] ERROR : Error appeared during Puppet run: 192.168.213.120_contr 阅读全文
posted @ 2022-09-12 21:16 python,菜鸟 阅读(5102) 评论(0) 推荐(0) 编辑
摘要: 菜鸟:小辉 在执行ping www.baidu.com命令时,出现如下错误: [root@qwe bhu_123]# ping www.baidu.comping: www.baidu.com: 未知的名称或服务 一、找到自己电脑ip地址 先确定登录的身份是否为root用户,如果不是,最好切换为ro 阅读全文
posted @ 2022-09-11 22:20 python,菜鸟 阅读(2724) 评论(0) 推荐(0) 编辑
摘要: 菜鸟:小辉 进入到Linux的终端 [qwe@zxc ~]$ su root 切换的root下面 直接输入 vi 文件名 就能够进入 vi 的一般模式了。请注意,记得 vi 后面一定要加文件名,不管该文件存在与否! [root@zxc qwe]# vim /etc/selinux/config 之后 阅读全文
posted @ 2022-09-11 13:04 python,菜鸟 阅读(1586) 评论(0) 推荐(0) 编辑
摘要: import time import requests from bs4 import BeautifulSoup from lxml import etree # @Author : 熊xiaohui # @Software: PyCharm #爬取北京的二手房的信息 a=0 cz={'User- 阅读全文
posted @ 2022-09-09 20:23 python,菜鸟 阅读(132) 评论(0) 推荐(0) 编辑
摘要: import requests 作者:小辉 herd={ 'accept': 'application/json', 'accept-encoding': 'gzip, deflate, br', 'User-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; 阅读全文
posted @ 2022-09-09 20:15 python,菜鸟 阅读(14) 评论(0) 推荐(0) 编辑
摘要: import time import requests from lxml import etree from multiprocessing import Pool #先创建一个lp文件夹 def zxc(qwe,hercx): qwe_op=requests.get(qwe,headers=he 阅读全文
posted @ 2022-09-09 20:14 python,菜鸟 阅读(105) 评论(0) 推荐(0) 编辑
摘要: from lxml import etree import requests # 爬取一首唐诗 hercx={ 'User-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) 阅读全文
posted @ 2022-09-09 20:14 python,菜鸟 阅读(24) 评论(0) 推荐(0) 编辑
摘要: from bs4 import BeautifulSoup import requests import lxml # 开任意浏览器,在网址上输入about://version查看浏览器的代理 hasd_op={ "User-Agent":"Mozilla/5.0 (Windows NT 10.0; 阅读全文
posted @ 2022-09-09 20:12 python,菜鸟 阅读(23) 评论(0) 推荐(0) 编辑