上一页 1 ··· 9 10 11 12 13 14 15 下一页
摘要: 传送门 在终端输入 pyinstaller -F xxx.py -n 新名字 --noconsole --noconsole 去掉cmd命令窗口 -F 打包成一个文件 -D 打包成一个文件夹 -i 加入图标,图标格式为ico格式 pyinstaller -F -i 图标.ico xxx.py -n 阅读全文
posted @ 2021-08-15 11:34 磕伴 阅读(106) 评论(0) 推荐(0)
摘要: 增 INSERT INTO [dbo].[user](x,y) VALUES(x,y) 删除 delete from [dbo].[all_ele] where fid=x 修改 UPDATE all_ele SET name=s,price=s,quantity=s WHERE fid=s 查 s 阅读全文
posted @ 2021-07-06 19:59 磕伴 阅读(42) 评论(0) 推荐(0)
摘要: 点击下载谷歌浏览器驱动 把解压的 浏览器驱动 chromderiver 放在python 解释器所在的文件夹 程序运行一下,看到下面的这个文件夹就是 原理:模拟人的一些操作,动态获取网页内容,所见即所得 打开网址: web=Chrome() web.get("https://www.lagou.co 阅读全文
posted @ 2021-07-06 10:36 磕伴 阅读(58) 评论(0) 推荐(0)
摘要: 原理:拿到网页源代码并且进行分析 关键词:etree .xpath a[@href="dapao"] a/@href text() import requests,csv from lxml import etree resp = requests.get(url) html=etree.HTML( 阅读全文
posted @ 2021-07-06 09:48 磕伴 阅读(110) 评论(0) 推荐(0)
摘要: 适用于:数据都在网页源代码上,可以直接从中提取到对应数据 例子:北京新发地网 原理:拿到页面源代码的文本,交给BeautifulSoup解析,然后找到对应的标签,获取值 关键词:BeautifulSoup find find_all get / mode='wb' .content resp = r 阅读全文
posted @ 2021-07-06 09:20 磕伴 阅读(76) 评论(0) 推荐(0)
摘要: 连接方案1: conn = pymssql.connect(host='127.0.0.1', port=1433, user='sa', password='password', database='b2c') cur = conn.cursor() cur.execute('SELECT * F 阅读全文
posted @ 2021-07-01 17:07 磕伴 阅读(144) 评论(0) 推荐(0)
摘要: import re #findall匹配字符串中所有的符合正则的内容【返回列表】 list=re.findall(r'\d+','我的电话号码:10085,女女电话号:587744') #正则前面加个r 有益无害 print('findall',list) #finditer:匹配字符串中所有的内容 阅读全文
posted @ 2021-06-30 21:41 磕伴 阅读(91) 评论(0) 推荐(0)
摘要: 下载安装配置教程:传送门 关键步骤Windows: 官网 合并音频和视频 with open('video/x111.mp4','wb') as f: f.write(data_30080) with open('video/x222.mp3','wb') as f: f.write(data_30 阅读全文
posted @ 2021-06-30 12:20 磕伴 阅读(219) 评论(0) 推荐(0)
摘要: 增 INSERT INTO 表名(属性名1,属性名2) VALUES(值1,值2) 把查询结果直接添加到表里 INSERT INTO sales_reps(id, name, salary, commission_pct) SELECT employee_id, last_name, salary, 阅读全文
posted @ 2021-06-29 08:48 磕伴 阅读(50) 评论(0) 推荐(0)
摘要: 1.弹出框表单里面获取对应要编辑的值 (jQuery 取值+赋值) <tr> <td>{{item.fid}}</td> 3 <td>{{item.name}}</td> 2 <td>{{item.price}}</td> 1 <td>{{item.quantity}}</td> 0 <td><a 阅读全文
posted @ 2021-06-25 18:19 磕伴 阅读(47) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 下一页