摘要: package CloneTest; class Dog implements Cloneable{ private String dname; private Integer dage; public Dog clone() throws CloneNotSupportedException{ D 阅读全文
posted @ 2018-03-11 12:46 Saruka的男朋友 阅读(135) 评论(0) 推荐(0)
摘要: from PIL import Image,ImageChopsimage1=Image.open("C:/Users/wantao/Desktop/qq截图/python/33.png")image2=Image.open("C:/Users/wantao/Desktop/qq截图/python/44.png")difference=ImageChops.difference(image1,im... 阅读全文
posted @ 2018-02-08 13:50 Saruka的男朋友 阅读(914) 评论(0) 推荐(0)
摘要: 报错:The method PrintArray(T[]) in the type GenericTest is not applicable for the arguments (char[]) 传参出错 一开始想为什么会出错,是数组的原因吗?又写了一个 这次没报错,究竟是为什么。后来仔细看了泛型 阅读全文
posted @ 2018-02-07 14:28 Saruka的男朋友 阅读(177) 评论(0) 推荐(0)
摘要: models.py __init__.pyadmin.py apps.py tests.py urls.py views.py __init__.pysettings.pyurls.py wsgi.py article_edit.html article_page.html index.html 阅读全文
posted @ 2018-02-01 14:33 Saruka的男朋友 阅读(242) 评论(0) 推荐(0)
摘要: 问题1:页面跳转后再查找东西时报NoSuchElementException: Message: Unable to locate element原因:handle发生了变化解决方法:driver.switch_to_window(driver.currenHandle)问题2:怎么查找下拉菜单的元 阅读全文
posted @ 2018-01-23 16:42 Saruka的男朋友 阅读(177) 评论(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的男朋友 阅读(358) 评论(0) 推荐(0)
摘要: ssm整合时出现 org.springframework.beans.factory.BeanCreationException :Error creating bean with name ‘XXX’ 异常的原因及解决方法(只是可能出现下列几种,不包含全部) 此异常为:注入 bean 失败异常,也 阅读全文
posted @ 2018-01-21 22:54 Saruka的男朋友 阅读(149922) 评论(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的男朋友 阅读(594) 评论(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的男朋友 阅读(1873) 评论(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的男朋友 阅读(234) 评论(0) 推荐(0)