2022年10月8日
摘要: 问题描述: 使用executemany插入多条记录时: sql = r'INSERT INTO test (id, name, salesrep) VALUES (%s, %s, %s)' vals = [('1', 'John Smith', 'John Doe'), ('2', 'Jane Do 阅读全文
posted @ 2022-10-08 13:02 HandsomeFa 阅读(711) 评论(0) 推荐(0) 编辑
摘要: 将Scrapy项目打包成exe 用到的工具:pyinstaller 步骤: 1、在项目目录下创建脚本start_spider.py文件(注意:名字任意,和scrapy.cfg文件同级) 2、start_spider.py文件内容: # -*- coding: utf-8 -*- from scrap 阅读全文
posted @ 2022-10-08 09:25 HandsomeFa 阅读(627) 评论(1) 推荐(0) 编辑