上一页 1 ··· 111 112 113 114 115 116 117 118 119 ··· 180 下一页
摘要: cf = configparser.ConfigParser() ac=cf.read("my.ini")cookie = driver.get_cookies() xx=driver.get_cookie(name="zp_passport_deepknow_sessionId") xx1=dri 阅读全文
posted @ 2021-11-11 09:21 myrj 阅读(334) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //s=1-3+5-7+....-99+101 main() { int i,t=1,s=0; for(i=1;i<=101;i+=2) { t=t*i; s=s+t; t=-t/i; } printf("%d\n",s); getchar(); } #incl 阅读全文
posted @ 2021-11-10 09:25 myrj 阅读(1897) 评论(0) 推荐(0) 编辑
摘要: import emoji #去掉表情等特殊字符 jieshao="包括表情的字符串" jieshao=emoji.demojize(jieshao) def filter_emoji(self,desstr,restr='[emoji]'): ''' 过滤表情 ''' try: co = re.co 阅读全文
posted @ 2021-11-09 05:46 myrj 阅读(1054) 评论(0) 推荐(0) 编辑
摘要: mysql 查询端:show full processlist 查找:不是sleep状态的,id kill 458625 阅读全文
posted @ 2021-11-06 06:45 myrj 阅读(1538) 评论(0) 推荐(0) 编辑
摘要: ''' 三种等待方法: 1.强制等待sleep(xx) 强制等待,不管你浏览器是否加载完了,程序都得等待,时间一到,继续执行下面的代码,作为调试很有用,有时候也可以在代码里这样等待,不过不建议总用这种等待方式,太死板,严重影响程序执行速度。 2.隐性等待implicitly_wait(xx) 隐形等 阅读全文
posted @ 2021-11-05 19:30 myrj 阅读(5109) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(841) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(380) 评论(0) 推荐(0) 编辑
上一页 1 ··· 111 112 113 114 115 116 117 118 119 ··· 180 下一页