![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
只会睡觉
这个作者很懒,什么都没留下…
展开
-
python正则笔记
python正则python正则笔记一、XX多个空格:多个空格目标内容总结python正则笔记写这篇文章的原因:主要是记录我日常工作写的正则,有用的时候直接复制使用。一、XX多个空格:多个空格目标内容代码如下(示例):import recp2 =u"""自行车行政村 :中心距 : 111.12自行车行政村 :3333"""cp = re.compile("中心距\s+:\s+ *(-?\d+\.?\d*e?-?\d*?)", re.S).findall(原创 2021-08-27 11:42:41 · 119 阅读 · 0 评论 -
pyodbc.ProgrammingError: No results.
pyodbc连接sqlserver2008出现Previous SQL was not a query报错Previous SQL was not a query网上流传解决方法同事解决方法Previous SQL was not a query网上流传解决方法sql语句中加一句SET NOCOUNT ON;尝试过无效row = cursor.execute(sql).fetchone()一直报错同事解决方法row = cursor.execute(sql).fetchone()更改为ro原创 2020-09-21 17:24:26 · 1635 阅读 · 0 评论