摘要: shiro 1 参考视频:点击我 阅读全文
posted @ 2019-03-25 20:17 Saruka的男朋友 阅读(345) 评论(2) 推荐(0) 编辑
摘要: ``` Mysql查漏补缺 1.mysql中+的作用: 1.如果两边都为数值,则数值直接相加 2.如果一边为数值一边不为数值,则尝试将不为数值的一边进行转换: 1.转换成功,直接相加 2.转换不成功,转换成0后相加 3.如果有一边为null,则不管另外一边为什么都为null 2.mysql中转义: 1.使用\直接进... 阅读全文
posted @ 2019-03-25 20:00 Saruka的男朋友 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 第一步:在mybatis的jar包中找到mybatis 3 config.dtd与mybatis 3 mapper.dtd文件 第二步:找到下图位置点击add 第三步:如下图这么设置,注意keytype要选择url,key为xml doctype中的关于dtd的url 如果配置成功,ctrl+鼠标点 阅读全文
posted @ 2019-01-14 23:58 Saruka的男朋友 阅读(1994) 评论(0) 推荐(0) 编辑
摘要: ``` / 用一个数组保存节点,前面n为叶子结点,因为哈夫曼树没有度为1的节点,所以总结点数为2 n 1,后面为组合的节点 / include using namespace std; typedef struct HTNODE{ int weight; int parent; int lchild 阅读全文
posted @ 2018-10-31 14:00 Saruka的男朋友 阅读(286) 评论(0) 推荐(0) 编辑
摘要: # 查看ip是否有用 # driver.get("http://httpbin.org/ip") # print(driver.page_source) driver.get("https://www.wjx.cn/m/23272865.aspx") driver.find_element_by_x 阅读全文
posted @ 2018-05-10 20:40 Saruka的男朋友 阅读(770) 评论(0) 推荐(0) 编辑
摘要: import pymysqldb=pymysql.connect(host='localhost',user='root',passwd='xxxxxx',db='pymysql',port=3306)def select_one(): sql='select * from tb_user' cursor=db.cursor() cursor.execute(sql) da... 阅读全文
posted @ 2018-04-14 16:08 Saruka的男朋友 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 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的男朋友 阅读(117) 评论(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的男朋友 阅读(861) 评论(0) 推荐(0) 编辑
摘要: 报错:The method PrintArray(T[]) in the type GenericTest is not applicable for the arguments (char[]) 传参出错 一开始想为什么会出错,是数组的原因吗?又写了一个 这次没报错,究竟是为什么。后来仔细看了泛型 阅读全文
posted @ 2018-02-07 14:28 Saruka的男朋友 阅读(158) 评论(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的男朋友 阅读(218) 评论(0) 推荐(0) 编辑