import MySQLdb #查询数量 def Count(cur): count=cur.execute('select * from Student') print ('there has %s rows record' % count) #插入 def Insert(cur): sql = ...
分类:
数据库 时间:
2020-06-15 17:54:50
阅读次数:
78
收到客户的一份报告,说远程处理数据库事务时出现"卡"的现象,也就是运行比较缓慢。在相应时段做了一个AWR报告,报告中显示了这样一些等待: 1 Top 5 Timed Events Avg %Total 2 ~~~~~~~~~~~~~~~~~~ wait Call 3 Event Waits Time ...
分类:
数据库 时间:
2020-06-15 17:37:29
阅读次数:
68
nginx基础概念(100%) connection¶ 在nginx中connection就是对tcp连接的封装,其中包括连接的socket,读事件,写事件。利用nginx封装的connection,我们可以很方便的使用nginx来处理与连接相关的事情,比如,建立连接,发送与接受数据等。而nginx ...
分类:
其他好文 时间:
2020-06-15 15:50:13
阅读次数:
45
We have N bulbs arranged on a number line, numbered 1 to N from left to right. Bulb i is at coordinate i. Each bulb has a non-negative integer paramet ...
分类:
其他好文 时间:
2020-06-15 15:42:11
阅读次数:
80
简而言之,内存不够了。 https://serverfault.com/questions/828839/kernel-reported-iscsi-connection-10-error-1022-invalid-or-unknown-error-code I got a couple of re ...
分类:
其他好文 时间:
2020-06-15 11:56:54
阅读次数:
130
题目 A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nod ...
分类:
其他好文 时间:
2020-06-14 20:31:35
阅读次数:
61
1、组合的特点 2、继承带来最大的坏处 3、设计父类遵循的规则 4、何时使用继承 4、何时使用组合 1、组合的特点 提高代码复用性,增加has-a关系,增强理解 2、继承带来最大的坏处 破坏父类的封装性(每个类都应该封装它内部信息和实现细节,而只暴露必要的方法给其他类使用。但继承关系中,子类可以直接 ...
分类:
其他好文 时间:
2020-06-14 18:58:38
阅读次数:
56
今天写了一个requests爬虫,在运行的时候发生了requests.exceptions.ConnectionError:('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer')) 错误。 我马上goo ...
分类:
其他好文 时间:
2020-06-14 16:56:33
阅读次数:
408
Github地址:点击打开Github地址 小组成员:熊圣琦、彭荟铭、郑天越 1.数据库连接 private Connection connection = null; private PreparedStatement preparedStatement = null; private Resul ...
分类:
Web程序 时间:
2020-06-14 12:50:28
阅读次数:
97
Error: forwarding ports: error upgrading connection: unable to upgrade connection: pod does not exist 安装Helm客户端和服务端后, 执行helm version报错, Error: forward ...
分类:
Web程序 时间:
2020-06-13 19:32:16
阅读次数:
99