pyodbc 包使用odbc驱动器来连接SQL Server数据库,pyodbc的基本类型是Connection,Cursor和Row,其中,Connection表示客户端和数据库的连接,并用于提交事务;Cursor表示向数据库发送的查询请求,Row表示获取的结果集。 一,ODBC驱动程序 要使用p ...
分类:
数据库 时间:
2020-09-17 14:06:39
阅读次数:
49
QLineEdit定义为显示选中的目录,如果在打开界面立即执行获取文本框内容不会出问题,一旦选择目录后先执行其他的操作(或者需要执行多次获取目录的操作)就会出现"str" obiect has no attribute 'text',系统把self.lineedit当做了一个字符串变量,而没有真正读 ...
分类:
其他好文 时间:
2020-09-17 13:43:46
阅读次数:
58
问题 云端项目上有一个api通过HTTP/GET请求调用返回json数据 使用Python自带requests库发送GET请求查询数据报错如下 requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('HT ...
分类:
编程语言 时间:
2020-09-17 12:58:56
阅读次数:
86
步骤: 1. 加载数据库 MySQL驱动名: com.mysql.jdbc.Driver 加载方式: Class.forName(驱动名) 2.获取数据库连接: Connection con = DriverManager.getConnection(dbUrl, dbUserName, dbPas ...
分类:
数据库 时间:
2020-09-17 12:55:10
阅读次数:
29
Vim 配置 if has("autocmd") autocmd BufReadPost * \ if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif endif set encoding=utf-8 ...
分类:
系统相关 时间:
2020-09-17 12:54:28
阅读次数:
28
《Windows Azure Platform 系列文章目录》 在之前的文章中,我们已经介绍了如何创建1个Azure Automation Account。 在本章节中,我们将介绍如何在Azure Automation中使用Connection连接和Variables变量 请先按照之前的文章:Azu ...
分类:
其他好文 时间:
2020-09-17 12:33:06
阅读次数:
26
一直都想知道acquire中block参数的含义,今天查阅相关文档,如下别有一番洞天 Connection and Producer Pools Default Pools Kombu ships with two global pools: one connection pool, and one ...
分类:
其他好文 时间:
2020-09-14 19:10:24
阅读次数:
37
出现这个错误一般是sshd服务没有开启 (sshd服务是linux下的远程连接服务,默认端口号为22) 首先查看ssh服务是否安装在服务器上:rpm -qa|grep ssh 如果安装了可以在虚拟机查看sshd服务是否开启:systemctl status sshd.service 如果没有开启就可 ...
分类:
Web程序 时间:
2020-09-09 18:39:38
阅读次数:
82
14.2.5 Connection Phase Packets Protocol::Handshake Initial Handshake Packet When the client connects to the server the server sends a handshake packe ...
分类:
数据库 时间:
2020-09-08 21:06:16
阅读次数:
67
题目 Description Little Leticija is preparing for a programming exam. Even though she has solved a lot of tasks, there’s one still left unsolved, so she ...
分类:
其他好文 时间:
2020-08-31 13:30:01
阅读次数:
65