【script】python使用pymssql模块访问SQL Server(Mssql)
import pymssql #导入sql server数据库的包class MSSQL: def __init__(self,host,user,pwd,db): self.host = host self.user = user self.pwd = pwd self.db = db def __GetConnect(self): ''' 连接数据库 '