python随笔
python心得
爱吃鱼的小测试
哼哼哼……下班啦!!!………吃鱼去啦!!!
展开
-
python-异步执行库
python-异步执行链接地址 链接地址 https://docs.python.org/zh-cn/3/library/concurrent.futures.html原创 2021-09-05 16:00:00 · 48 阅读 · 0 评论 -
正则表达-笔记
目录 拓展符号 (?iLmsux) (?s) (?x) 拓展符号 (?iLmsux) (?i) 匹配单个字符串 (?im) 匹配一行 import re print(re.findall(r'(?i)yes','yes? Yes,Yes!!')) print(re.findall(r'(?i)th\w+','The quickest way is through this tunnel.')) print(re.findall(r'(?im)(^th[\w ]+)',"""原创 2021-09-05 14:27:08 · 72 阅读 · 0 评论 -
pyodbc-操作SQLserver
一把辛酸泪: 重点: 1、此库重点解决了pymssql 操作数据库中文乱码问题; 附件驱动: windos: https://docs.microsoft.com/zh-cn/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver15 import pyodbc server = 'ip,port' database = 'database' username = 'use...原创 2021-08-14 14:27:09 · 239 阅读 · 0 评论 -
python连接sqlserver—pymssql
db_160 = pymssql.connect(host='ip:port', database='', user='', password="", charset='GBK') charset='GBK' 设置之后显示中文才为正常文字原创 2021-08-13 20:57:51 · 78 阅读 · 0 评论