会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
myrj
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
117
118
119
120
121
122
123
124
125
···
186
下一页
2021年11月6日
mysql错误:pymysql.err.OperationalError: (1205, 'Lock wait timeout exceeded; try restarting transaction')
摘要: mysql 查询端:show full processlist 查找:不是sleep状态的,id kill 458625
阅读全文
posted @ 2021-11-06 06:45 myrj
阅读(1594)
评论(0)
推荐(0)
2021年11月5日
python webdriver判断网页是否加载完成
摘要: ''' 三种等待方法: 1.强制等待sleep(xx) 强制等待,不管你浏览器是否加载完了,程序都得等待,时间一到,继续执行下面的代码,作为调试很有用,有时候也可以在代码里这样等待,不过不建议总用这种等待方式,太死板,严重影响程序执行速度。 2.隐性等待implicitly_wait(xx) 隐形等
阅读全文
posted @ 2021-11-05 19:30 myrj
阅读(5497)
评论(0)
推荐(0)
2021年11月3日
python重新打开上次打开的webdriver窗口,不用再次输入密码
摘要: from selenium.webdriver import Remote from selenium.webdriver.chrome import options from selenium.common.exceptions import InvalidArgumentException im
阅读全文
posted @ 2021-11-03 17:19 myrj
阅读(266)
评论(0)
推荐(0)
python读取MYSQL表的记录数
摘要: import pymysql connect = pymysql.connect(user = 'm', password = 'M', db = 'x', host = 'rm', port = 3306, charset = 'utf8' ) con = connect.cursor() bu=
阅读全文
posted @ 2021-11-03 16:57 myrj
阅读(881)
评论(0)
推荐(0)
python 读写ini文件 设置保存与读取
摘要: import configparser,sys cf = configparser.ConfigParser() #写INI def xini(): executor_url = "100" session_id = "6666" cf.add_section("ssh") cf.set("ssh"
阅读全文
posted @ 2021-11-03 14:04 myrj
阅读(352)
评论(0)
推荐(0)
2021年11月2日
mysql触发过程
摘要: begin declare sum int(0); select count(*) into sum from bm51 where bzz='0'; if (sum<20) then UPDATE bm51 SET bzz='0'; end if; end
阅读全文
posted @ 2021-11-02 16:50 myrj
阅读(48)
评论(0)
推荐(0)
python 问题解决方案UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 14-14: Non-BMP character not supported in Tk
摘要: UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 14-14: Non-BMP character not supported in Tk 出现类似表明不能输出相应的代码,只要不输出就不报错了
阅读全文
posted @ 2021-11-02 05:57 myrj
阅读(433)
评论(0)
推荐(0)
2021年10月30日
python 元组转列表 列表分组,再组合
摘要: import pymysql,itertools connect = pymysql.connect( user = 'm', password = '0', db = 'x', host = 'r', port = 3306, charset = 'utf8' ) con =connect.cur
阅读全文
posted @ 2021-10-30 07:08 myrj
阅读(107)
评论(0)
推荐(0)
mysql executemany批量写入数据
摘要: if isinstance(item,MmzItem): data = {'xinxi':item['xinxi']} xinxia = data['xinxi'] print(len(xinxia),type(xinxia)) #print("ffffffffffffff",xinxi[0],xi
阅读全文
posted @ 2021-10-30 04:52 myrj
阅读(154)
评论(0)
推荐(0)
2021年10月29日
MYSQL海量数据导出到EXCEL
摘要: import pymysql import openpyxl import time def export_to_excel(worksheet, cursor, table): """ 将MySQL一个数据表导出到excel文件的一个表的函数 :param worksheet: 准备写入的exce
阅读全文
posted @ 2021-10-29 09:53 myrj
阅读(597)
评论(0)
推荐(0)
上一页
1
···
117
118
119
120
121
122
123
124
125
···
186
下一页
公告