基本开发环境: ·Python3.6 ·Pycharm 相关模块使用: import requests import time 目标网页分析: 选择一个影视栏目,F12或者鼠标右键检查,打开开发者工具,选择network,下滑网页 https://haokan.baidu.com/videoui/a ...
分类:
编程语言 时间:
2021-03-17 14:20:20
阅读次数:
0
问题原因在于官方在2020年12月2日正式将CentOS 6相关的软件源移出了官方源,随之而来逐级镜像也会陆续将其删除。 解决方案: curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliy ...
分类:
Web程序 时间:
2021-03-17 14:13:50
阅读次数:
0
from xlutils.copy import copy import xlrd # 加载已存在的xls old_workbook = xlrd.open_workbook('guoshun.xlsx') # 将已存在的excel拷贝进新的excel new_workbook = copy(old ...
分类:
其他好文 时间:
2021-03-17 14:13:15
阅读次数:
0
循环路径下的文件将所有的txt文件进行合并 from xlutils.copy import copy import xlrd # 加载已存在的xls old_workbook = xlrd.open_workbook('guoshun.xlsx') # 将已存在的excel拷贝进新的excel n ...
分类:
其他好文 时间:
2021-03-17 14:10:19
阅读次数:
0
# 图片爬取 import re import urllib import urllib.request def gethtml(url): page=urllib.request.urlopen(url) html=page.read() return html def getimg(html): ...
分类:
编程语言 时间:
2021-03-16 14:08:34
阅读次数:
0
一、 系统环境: Windows xp以上版本,电脑 二、 设计内容: 程序一共定义五个类,继承关系如图所示 首先我进行了主菜单主函数,会员登录,书记信息查看,购书。又在这些主菜单上进行相对应的子菜单的函数。主菜单如下: #include<string> #include<iostream> #in ...
分类:
其他好文 时间:
2021-03-16 14:02:51
阅读次数:
0
https://www.imperva.com/learn/application-security/osi-model/ What Is the OSI Model The Open Systems Interconnection (OSI) model describes seven layer ...
分类:
其他好文 时间:
2021-03-16 14:01:01
阅读次数:
0
Sed用法 sed是一个很好地文件处理工具,本身是一个管道命令,主要是以行为单位进行处理,可以将数据进项替换,删除,新增,选取等特定工作,下面先了解一下sed的用法。sed的命令行格式为: sed [-nefri] 'command' 输入文本 常用选项: 常用选项: -n∶使用安静(silent) ...
分类:
系统相关 时间:
2021-03-16 13:59:45
阅读次数:
0
1. awk工作模式 awk是一个文本处理工具,通常用于处理数据并生成结果报告 awk的命名来自它的创始人 Alfred Aho 、Peter Weinberger 和 Brian Kernighan 姓氏的首个字母 语法格式 awk 'BEGINpatternEND' file standard ...
分类:
其他好文 时间:
2021-03-16 13:40:15
阅读次数:
0
# 1. 文件操作# 一个函数: open()函数,创建一个文件对象# 三个方法:read/write/close # 2.open()函数# 默认以只读方式r打开文件,并返回文件对象# open(filename, mode) filename文件名 mode访问模式# 2.1 打开文件# fil ...
分类:
其他好文 时间:
2021-03-16 12:01:10
阅读次数:
0