hexo基本命令记录
hexo基本命令hexo n "我的博客" == hexo new "我的博客" #新建文章
hexo n page "新菜单"
hexo g == hexo generate #生成
hexo s == hexo server #启动服务预览
hexo d == hexo deploy #部署
hexo server #Hexo会监视文件变动并自动更新,无须重启服务器
hexo server -s #静态模式
hexo server -p 5000 #更改端口
hexo server -i 192.168.1.1 #自定义 IP
hexo clean #清除缓存,若是网页正常情况下可以忽略这条命令
oracle note
oracle 数据库1.添加用户到oracle
create user lihong identified by 123; 删除: drop user lihong;
添加权限(connect resource dba)
grant 权限 to lihong;
SQL是用于访问和处理数据库的标准的计算机语言
基本数据库对象 (不区分大小写)
主码约束primary key,唯一性约束unique,非空约束not null,外键约束foreign key;
删除表 DROP table tablename;
添加列:alter table tablename add ziduan datatype修改列数据类型:alter table cj modify ceshi 数据类型;修改字段名:alter table student rename column sno to id;删除列:alter table cj drop column 字段名;
增删改查 insert into tablename(ziduan) values(‘’,’’,…); dele ...
python爬虫模块
Python 爬虫训练一、基本爬虫三段式import requests
response = requests.get('https://baidu.com')
print(response.text)
即可打印来自baidu的前端代码
二、爬虫的数据清洗1.xpathfrom lxml import etree
url = 'https://baidu.com'
response = requests.get(url)
#将源代码转化成网页结构
html = etree.HTML(response.text)
#在通过xpath来选择数据
data_info=html.xpath('/html/body/div[2]/div[3]/div/div[2]/div[4]/div[1]/div[1]/a/p[1]/span[1]')
print(data_info)
2.正则表达式(.*?)import re
data = {'fdasfagagawe'}
a = re.findall('[a-z]',data,re.S)
print(a)
3.Be ...