摘要: 在多进程中,开辟pool的进程池 from multiprocessing import Poolimport os, time, randomdef worker(msg): start = time.time() print("%s开始执行,进程号为%d"%(msg,os.getpid())) 阅读全文 »
posted @ 2022-08-02 10:23 YEER- 阅读(407) 评论(0) 推荐(0) 编辑
摘要: request.args.get()的使用 获取前端表单穿过来的参数 阅读全文 »
posted @ 2022-06-28 15:41 YEER- 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 例如:你要定义如下函数:def func(num): for num in range(1,10): if num==5: print("I find '5'") returnfunc(5)错误一:如果你忘记写def func(num):如下:for num in range(1,10): if n 阅读全文 »
posted @ 2022-06-28 09:49 YEER- 阅读(2732) 评论(0) 推荐(0) 编辑
摘要: 超级简单的导入方法 学到了,给个评论呀!!!! 阅读全文 »
posted @ 2022-06-08 16:48 YEER- 阅读(195) 评论(0) 推荐(0) 编辑
摘要: ''' @功能: 调用高德地图api批量对地址列表进行处理 ''' import requests DBadss_list = [] # 用来存放被高德api处理后的小区地址 # 定义方法用来处理数据库内地址 def GaoDe_ads(your_adsree,your_city): # 在Pyth 阅读全文 »
posted @ 2022-06-07 16:11 YEER- 阅读(515) 评论(0) 推荐(0) 编辑
摘要: from openpyxl import load_workbook import pymssql #对excel进行读取 path = r"C:/Users/xxxx/Desktop/xxxx.xlsx" wb = load_workbook(path) sheet = wb.active #对于 阅读全文 »
posted @ 2022-06-07 16:10 YEER- 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 1.对于在使用python导入sqlsever时,出现102, b"Incorrect syntax near '.15562'.DB-Lib error message 20018, severity 1时的问题 在遇到这种问题时,让人摸不清头脑,下面是遇到后提供的解决办法 1)"INSERT I 阅读全文 »
posted @ 2022-06-07 15:45 YEER- 阅读(1265) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示