Fork me on GitHub
上一页 1 2 3 4 5 6 7 ··· 23 下一页
  2020年9月5日
摘要: ## 1 vim```python# yum install vim -y# 普通模式、编辑模式、命令模式# 普通模式: -上下翻 -yy 复制一行 -p 粘贴 -dd 剪切 -p 把上面剪切的粘贴上# 编辑模式 -i:insert插入 -a:append追加 -o:换行 -正常写就可以了 -esc 阅读全文
posted @ 2020-09-05 16:47 OBOS 阅读(150) 评论(0) 推荐(0)
摘要: ## 1 常用命令```python1 tree /home/ 树状形式显示 yum install tree2 cat :查看文本内容 cat >> test2.txt <<EOF > ads > adf > EOF3 less,more:文本查看,分页 less /etc/services4 h 阅读全文
posted @ 2020-09-05 16:45 OBOS 阅读(207) 评论(0) 推荐(0)
摘要: ## 0 命令别名```python 1 设置别名 alias www='ls /' 只在当前bashshell中生效 2 永久生效(全局,局部), echo "alias wk='ifconfig'" >> /etc/bashrc 3 unalias wk 4 如果写到配置文件中,取消的话unal 阅读全文
posted @ 2020-09-05 16:44 OBOS 阅读(221) 评论(0) 推荐(0)
摘要: ## 一. Linux历史## 二. 虚拟软件安装```python# 虚拟化技术:kvm,vmware,openstack,docker,k8s# iaas,paas,saas# openstack:iaas# docker:paas# k8s:容器编排,管理容器,不同机器上的容器# 一路下一步, 阅读全文
posted @ 2020-09-05 16:42 OBOS 阅读(273) 评论(0) 推荐(0)
摘要: ## 1 自动给抽屉点赞```pythonfrom selenium import webdriverimport timeimport requestsbro=webdriver.Chrome(executable_path='./chromedriver.exe')bro.implicitly_ 阅读全文
posted @ 2020-09-05 16:39 OBOS 阅读(273) 评论(0) 推荐(0)
摘要: ## 1 scrapy 介绍,架构介绍(框架)```python#1 通用的网络爬虫框架,爬虫界的django#2 scrapy执行流程 5大组件 -引擎(EGINE):大总管,负责控制数据的流向 -调度器(SCHEDULER):由它来决定下一个要抓取的网址是什么,去重 -下载器(DOWLOADER 阅读全文
posted @ 2020-09-05 16:37 OBOS 阅读(153) 评论(0) 推荐(0)
摘要: ## 1 爬拉勾网职位信息```python#https://www.lagou.com/jobs/positionAjax.json?city=%E4%B8%8A%E6%B5%B7&needAddtionalResult=falseimport requests#实际要爬取的urlurl = 'h 阅读全文
posted @ 2020-09-05 16:35 OBOS 阅读(405) 评论(0) 推荐(0)
摘要: ## 1 爬取汽车之家新闻```python#代码import requests# pip3 install beautifulsoup4 解析html和xml,修改html和xmlfrom bs4 import BeautifulSoupres=requests.get('https://www. 阅读全文
posted @ 2020-09-05 16:32 OBOS 阅读(312) 评论(0) 推荐(0)
摘要: ## 3 requests模块使用```python1 安装:pip3 install requests2 图片防盗链:referer3 代码import requests# 1 发送get请求# res是python的对象,对象里,响应头,响应体。。。。# header = {# 'user-ag 阅读全文
posted @ 2020-09-05 16:30 OBOS 阅读(507) 评论(0) 推荐(0)
摘要: ## 1 阿里云购买```python# 1 写好的项目,在本地跑,别问访问不到,没有公网ip# 2 远程连接阿里云的服务器47.103.156.13(xshell,finalShell)# 3 ssh连接 # 4 配置前后端项目# 5 编译前端项目,要把前端项目传到服务器(可以用软件) scp - 阅读全文
posted @ 2020-09-05 14:46 OBOS 阅读(166) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 23 下一页