macOS M1 python 连接 SQLServer

python版本一定要使用3.8 brew install freeTDS conda install "pymssql==2.1.5" 其它版本或者更高版本不可行。

编程

一行命令设置 pip 镜像

1pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

编程

Python 过滤数组元素

12list = [1,2,'',3,'','',4]list = [i for i in list if i != '']

编程