摘要: 1 import requests 2 import re 3 from lxml import etree 4 import os 5 import time 6 7 8 def get_html(): 9 headers = {} 10 '''提供访问方式,包含操作系统,cpu,浏览器等,服务器会根据User_Agent返回不同的界面''' 11 ... 阅读全文
posted @ 2019-10-20 21:54 大壞狐狸 阅读(184) 评论(0) 推荐(0)
摘要: 使用C语言编写; 基本功能:顺序表的初始化,插入,删除,查找(按索引查找,按值查找) 代码如下: 阅读全文
posted @ 2019-10-20 20:00 大壞狐狸 阅读(214) 评论(0) 推荐(0)
摘要: 一、编写C语言程序:输出两行文字“how are you”,在Linux下编辑,编译,运行。 实验步骤: 1. 编辑:$gedit hello.c 进入gedit编辑程序,保存。“gedit代表的为编辑器,比如我用的vim就可以使用命令$vim hello.c 2. 编译:$gcc –o hello 阅读全文
posted @ 2019-10-12 17:10 大壞狐狸 阅读(490) 评论(0) 推荐(0)
摘要: 1.select*from 表名 [where 条件];eg:select*from students;//查询 students 表中所有记录,所有字段的值都显示出来select field1,field2,...fieldn... from 表名 [where 条件];eg:select id, 阅读全文
posted @ 2019-09-28 09:17 大壞狐狸 阅读(237) 评论(0) 推荐(0)
摘要: 对数据库的操作: 1.连接数据库:mysql -u root -p; 2.查询数据库:show databases; 3.创建数据库:create database 数据库名; 4.删除数据库:drop database 数据库名; 5.选择数据库:use 数据库名; 对数据表的操作: 1.创建数据 阅读全文
posted @ 2019-06-21 10:44 大壞狐狸 阅读(195) 评论(0) 推荐(0)
摘要: 题目描述 You are given a grid of squares with H horizontal rows and W vertical columns, where each square is painted white or black. HW characters from A1 阅读全文
posted @ 2019-06-03 19:23 大壞狐狸 阅读(365) 评论(0) 推荐(0)
摘要: 知识点: 组合数与杨辉三角的关系 题目:《上学路线》 中石油oj 题目描述 小D从家到学校的道路结构是这样的:由n条东西走向和m条南北走向的道路构成了一个n*m的网格,每条道路都是单向通行的(只能从北向南,从西向东走)。已知小D的家在网格的左上角,学校在网格的右下角。 问小D从他的家到学校一共有多少 阅读全文
posted @ 2019-06-03 13:42 大壞狐狸 阅读(1240) 评论(0) 推荐(0)