自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 收藏
  • 关注

原创 python04

04正则固定表\d : 任何数字\D : 不是数字\s : 任何 white space, 如 [\t\n\r\f\v]\S : 不是 white space\w : 任何大小写字母, 数字和 _ [a-zA-Z0-9_]\W : 不是 \w\b : 空白字符 (只在某个字的开头或结尾)\B : 空白字符 (不在某个字的开头或结尾)\\ : 匹配 \. : 匹配任何字符 (除了 \n)^ : 匹配开头$ : 匹配结尾? : 前面的字符可有可无* : 重复零次或多次+ : 重复

2020-09-16 16:38:48 132

原创 python03

03爬取页面内容1)`import` bs4以及urllib2)获取url 定义html3)引入bs4 以html为基础4)通过bs以lxml进行解析html5)通过class即css类名以及li标签进行定义month6)遍历month 获取文本信息.get_text()from bs4 import BeautifulSoupfrom urllib.request import urlopenhtml = urlopen("https://mofanpy.com/static/sc

2020-09-16 16:07:24 64

原创 python02

02转自老师总结:1)选着要爬的网址 (url)2)使用 python 登录上这个网址 (urlopen等)3)读取网页信息 (read() 出来)4)将读取的信息放入 BeautifulSoup5)使用 BeautifulSoup 选取 tag 信息等 (代替正则表达式)beautifulSoup下载安装# Python 2+pip install beautifulsoup4# Python 3+pip3 install beautifulsoup4开始学习使用bs4由于

2020-09-16 15:50:15 87

原创 mofanpy01

01简易爬源码使用python登录网站以后打印出源代码由于老师提供的链接存在中文,read()以后需要进行decode('utf-8')进行中文转换。from urllib.request import urlopen#如有中文,请decode()html = urlopen("https://mofanpy.com/static/scraping/basic-structure.html").read().decode('utf-8')#获取html进行read(),并且使用decode()

2020-09-16 15:35:23 124

原创 python爬数据

import requestsfrom lxml import etreeurl = "https://q.cnblogs.com/q/106593/"header = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"}html = requests.get(url, headers=h

2020-09-15 16:31:52 59

原创 js17 - Sort Without Articles

内容html部分<ul id="bands"></ul>css部分 <style> body { margin: 0; font-family: sans-serif; background: url("https://source.unsplash.com/nDqA4d5NL0k/2000x2000"); background-size: cover; display: flex;

2020-09-15 11:52:32 77

原创 js16 - Mouse Move Shadow

内容html部分<div class="hero"> <h1 contenteditable>????WOAH!</h1> </div>css部分<style> html { color:black; font-family: sans-serif; } body { margin: 0; } .hero { min-height: 100vh; display:

2020-09-15 10:39:49 108

原创 js15 - LocalStorage

内容html部分<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve"><g><path d="M495.9,425.3H16.1c-5.2,0-10

2020-09-14 16:24:40 127

原创 js14 - JavaScript References VS Copying

内容js中的复制<script> const players = ['Wes', 'Sarah', 'Ryan', 'Poppy']; const team = players ; console.log(players,team) team[3]='Lux' console.log(players,team) //--------------------------------------------- const team2 = p

2020-09-14 12:38:49 52

原创 js13 - Slide in on Scroll

内容html <div class="site-wrap"> <h1>Slide in on Scroll</h1> <p>Consectetur adipisicing elit. Tempore tempora rerum, est autem cupiditate, corporis a qui libero ipsum delectus quidem dolor at nulla, adipisci veniam

2020-09-14 10:53:26 97

原创 js12 - Key Sequence Detection

内容js部分pressCode.splice(- scCode.length - 1 ,pressCode.length + 1 - scCode.length)存在问题 //pressCode length max =6 const pressCode = []; //scCode length = 6 const scCode = 'hahaha' window.addEventListener('keyup',(e)=>{ // console.log(e.key

2020-09-11 17:43:00 64

原创 js11 - Custom Video Player

内容html部分(自带) <div class="player"> <video class="player__video viewer" src="https://player.vimeo.com/external/194837908.sd.mp4?s=c350076905b78c67f74d7ee39fdb4fef01d12420&profile_id=164"></video> <div class="player__co

2020-09-11 15:39:44 265

原创 js10 - Hold Shift and Check Checkboxes

内容css部分(自带) <style> html { font-family: sans-serif; background:#ffc600; } .inbox { max-width:400px; margin:50px auto; background:white; border-radius:5px; box-shadow:10px 10px 0 rgba(0,0,0,0.

2020-09-11 11:18:20 141

原创 js09 - Dev Tools Domination

内容<body> <p onClick="makeGreen()">×BREAK×DOWN×</p> <script> const dogs = [{ name: 'Snickers', age: 2 }, { name: 'hugo', age: 8 }]; function makeGreen() { const p = document.querySelector('p'); p.style.col

2020-09-10 14:47:21 92

原创 js08 - Fun with HTML5 Canvas

内容 <canvas id="draw" width="800" height="800"></canvas> <script> let canvas = document.querySelector('#draw'); let ctx = canvas.getContext('2d'); canvas.width = window.innerWidth; canvas.height = window.innerHeight;

2020-09-10 10:56:29 167

原创 js07 - Array Cardio Day 2

内容运用所给函数进行打印 <script> // ## Array Cardio Day 2 const people = [ { name: 'Wes', year: 1988 }, { name: 'Kait', year: 1986 }, { name: 'Irv', year: 1970 }, { name: 'Lux', year: 2015 } ]; const comments = [

2020-09-10 09:46:09 129

原创 js06 - Type Ahead

内容#涵括特性: - Promise fetch()//接受资源路径,返回一个promise对象 then() json()//使用json读取response中的数据 - Array filter() map() push()//arr1.push(...arr2) join() Spread syntax 拓展语句//利用拓展简化push语句 - RegExp match() replace() //定义json文件地址 const endpoin

2020-09-09 16:20:12 103

原创 js05 - Flex Panel Gallery

内容针对CSS学习flex部分#### 针对 Flex items 的特性(Children)- `flex-growth`:伸展值- `flex-shrink`:可接受的压缩值- `flex-basis`:元素默认的尺寸值- `flex`:以上三个值按顺序的缩写#### 针对 Flex container 的特性(Parent)- `display: flex`:将这个元素设置成弹性盒子- `flex-direction`:主轴方向 - `row`:横向 - `column`:

2020-09-09 14:35:58 144

原创 js04 - Array Cardio Day 1

主要学习js中数组的过滤方法<script> const inventors = [ { first: 'Albert', last: 'Einstein', year: 1879, passed: 1955 }, { first: 'Isaac', last: 'Newton', year: 1643, passed: 1727 }, { first: 'Galileo', last: 'Galilei', year: 1564, passed:

2020-09-08 17:00:28 172

原创 js03 - CSS Variables

html部分 <h2>Update CSS Variables with <span class='hl'>JS</span></h2> <div class="controls"> <label for="spacing">Spacing:</label> <input type="range" name="spacing" min="10" max="200" value="10" dat

2020-09-08 15:03:21 83

原创 MySQL5.6.40在CentOS7 64下安装过程

MySQL5.6.40在CentOS7 64下安装过程1)卸载之前安装的mysqlrm -rf /usr/local/mysqlrm -rf /etc/init.d/mysqld2)删除数据库目录rm -rf /data/mysql/3)卸载以后安装依赖包,避免安装过程中出现问题yum -y install wget vim bash-completionyum -y install gcc gcc-c++ cmake ncurses-devel autoconf perl perl-d

2020-06-01 16:09:13 864

原创 搭建LAMP环境

搭建LAMP环境LAMP环境概念安装LINUX(CentOS7 系统Apache安装PHP安装MySQL安装连接PHP和MySQL安装常用的PHP模块测试MySQL是否能配合PHP工作搭建完成LAMP环境概念LAMP是指一组通常一起使用来运行动态网站或者服务器的自由软件名称首字母缩写。L(LINUX)A(APACHE)M(MYSQL)P(PHP)安装LINUX(CentOS7 系统准备工作:VMware虚拟机镜像文件:CentOS-7-x86_64-bin-DVD1.iso1)打开VMware

2020-05-21 15:27:52 477

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除