摘要: 问题1:页面跳转后再查找东西时报NoSuchElementException: Message: Unable to locate element原因:handle发生了变化解决方法:driver.switch_to_window(driver.currenHandle)问题2:怎么查找下拉菜单的元 阅读全文
posted @ 2018-01-23 16:42 Saruka的男朋友 阅读(167) 评论(0) 推荐(0)
摘要: from selenium import webdriverfrom selenium.webdriver.support.ui import WebDriverWaitimport timedriver=webdriver.Chrome()driver.get("http://www.sdju.e 阅读全文
posted @ 2018-01-23 16:25 Saruka的男朋友 阅读(333) 评论(0) 推荐(0)
摘要: ssm整合时出现 org.springframework.beans.factory.BeanCreationException :Error creating bean with name ‘XXX’ 异常的原因及解决方法(只是可能出现下列几种,不包含全部) 此异常为:注入 bean 失败异常,也 阅读全文
posted @ 2018-01-21 22:54 Saruka的男朋友 阅读(149793) 评论(0) 推荐(3)
摘要: #coding:utf-8from email.header import Headerfrom email.mime.text import MIMETextfrom email.utils import parseaddr, formataddrimport smtplibdef _format 阅读全文
posted @ 2018-01-07 19:01 Saruka的男朋友 阅读(584) 评论(0) 推荐(0)
摘要: import requestsfrom bs4 import BeautifulSoupimport reurl='http://www.quanjing.com/'headers={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3253.3... 阅读全文
posted @ 2018-01-06 23:29 Saruka的男朋友 阅读(1864) 评论(0) 推荐(0)
摘要: import urllib.requestimport urllib.parseimport jsoncontent=input('请输入你要翻译文本\n')data={}data['i'] = contentdata['from'] = 'AUTO'data['to'] = 'AUTO'data['smartresult'] = 'dict'data['client'] = 'fanyi... 阅读全文
posted @ 2018-01-01 23:15 Saruka的男朋友 阅读(222) 评论(0) 推荐(0)
摘要: 图的邻接矩阵的深度优先搜索和广度优先搜索 阅读全文
posted @ 2017-11-30 15:48 Saruka的男朋友 阅读(289) 评论(0) 推荐(0)
摘要: //测试结点abd###ce##f###include<stdio.h>#include<stdlib.h>#include<string.h>#define MAXLENGTH 30typedef struct Binode{ char data; struct Binode *lchild; s 阅读全文
posted @ 2017-11-13 22:28 Saruka的男朋友 阅读(143) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<stdlib.h>#define MAXLEN 100typedef struct{ char * vec; int length;}str; int StrLength(char* obj){//求串长 int i=0,n=0; while(ob 阅读全文
posted @ 2017-11-13 22:27 Saruka的男朋友 阅读(176) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<stdlib.h>#define MAX_SIZE 100typedef struct{ int data[MAX_SIZE]; int front; int rear;}SeqQueue; void InitQueue(SeqQueue *Q){ 阅读全文
posted @ 2017-11-13 22:26 Saruka的男朋友 阅读(153) 评论(0) 推荐(0)