摘要: MySQL重点概念介绍 一、库的基本介绍 库 文件夹表 文件记录 文件内一行行的数据表头 表格的第一行的字段字段==name,password,hobby MySQL的安装 下载地址:https://www.mysql.com/ MySQL启动 1、cmd手动启动 服务端启动:在管理员打开cmd的模 阅读全文
posted @ 2021-11-26 16:31 黑客3301 阅读(39) 评论(0) 推荐(0)
摘要: 导入方式:from bs4 import BeautifulSoup 下载方式:pip install bs4 BeautifulSoup 功能 方法/参数 描述 备注 解析 x=BeautifulSoup(源代码,"html.parser") 目标代码parser解释器,返回值是一个源代码 查找 阅读全文
posted @ 2021-11-20 16:29 黑客3301 阅读(428) 评论(0) 推荐(0)
摘要: s = """ <div class='西游记'><span id='10010'>中国联通</span></div> <div class='西游记'><span id='10086'>中国移动</span></div> """ obj = re.compile(r"<span id='(?P<i 阅读全文
posted @ 2021-11-20 16:05 黑客3301 阅读(8) 评论(0) 推荐(0)
摘要: requests模块的下方法 功能 方法/参数 描述 请求连接 requests.get(目标地址,params=检测数,headers=浏览器) 请求连接 requests.post(目标地址,params=检测数,headers=浏览器) 请求连接 获取数据 x.text 获取字符数 x.jso 阅读全文
posted @ 2021-11-20 16:03 黑客3301 阅读(37) 评论(0) 推荐(0)
摘要: 导入模块 from urllib.request import urlopen """charset 网站编码"""url = "http://www.baidu.com"#打开浏览器地址resp = urlopen(url)print(resp.read().decode("utf-8")) 阅读全文
posted @ 2021-11-20 15:47 黑客3301 阅读(10) 评论(0) 推荐(0)
摘要: Python 参考手册 (w3school.com.cn) 阅读全文
posted @ 2021-11-18 12:42 黑客3301 阅读(18) 评论(0) 推荐(0)
摘要: 1.and , or and , or 为逻辑关系用语,Python具有短路逻辑,False and 返回 False 不执行后面的语句, True or 直接返回True,不执行后面的语句 2.del 删除变量 而列表本身包含的是变量,例: 所以 3.from from引用模块时会用到,例: 4. 阅读全文
posted @ 2021-11-18 12:23 黑客3301 阅读(66) 评论(0) 推荐(0)