摘要: String转换为char 在Java中将String转换为char是非常简单的。1. 使用String.charAt(index)(返回值为char)可以得到String中某一指定位置的char。2. 使用String.toCharArray()(返回值为char[])可以得到将包含整个Strin 阅读全文
posted @ 2019-12-21 11:09 葵儿啊 阅读(787) 评论(0) 推荐(0) 编辑
摘要: mac 终端下,执行以下命令,即可安装brew: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 在终端环境下,brew --version 查看br 阅读全文
posted @ 2019-12-20 12:18 葵儿啊 阅读(8319) 评论(0) 推荐(0) 编辑
摘要: //实体类package com.example.spring.entity;import cn.afterturn.easypoi.excel.annotation.Excel;import cn.afterturn.easypoi.excel.annotation.ExcelTarget;imp 阅读全文
posted @ 2019-12-18 17:58 葵儿啊 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 官方文档:https://baomidou.gitee.io/mybatis-plus-doc/#/wrapper 实体包装器,用于处理 sql 拼接,排序,实体参数查询等! 补充说明: 使用的是数据库字段,不是Java属性! 实体包装器 EntityWrapper 继承 Wrapper 简单示例翻 阅读全文
posted @ 2019-12-18 10:46 葵儿啊 阅读(366) 评论(0) 推荐(0) 编辑
摘要: AJAX 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。 3.timeout: 要求为Numb 阅读全文
posted @ 2019-12-17 09:59 葵儿啊 阅读(103) 评论(0) 推荐(0) 编辑
摘要: package com.freeter.util;import java.util.UUID;/** * @author liuqi * **/public class Uuid{ public static void getUuid(){ String uuid=UUID.randomUUID() 阅读全文
posted @ 2019-12-14 17:41 葵儿啊 阅读(408) 评论(0) 推荐(0) 编辑
摘要: package com.freeter.util;import com.sun.image.codec.jpeg.JPEGCodec;import com.sun.image.codec.jpeg.JPEGImageEncoder;import javax.imageio.ImageIO;impor 阅读全文
posted @ 2019-12-14 17:35 葵儿啊 阅读(201) 评论(0) 推荐(0) 编辑
摘要: package com.freeter.util;import com.sun.image.codec.jpeg.JPEGCodec;import com.sun.image.codec.jpeg.JPEGEncodeParam;import com.sun.image.codec.jpeg.JPE 阅读全文
posted @ 2019-12-14 17:33 葵儿啊 阅读(185) 评论(0) 推荐(0) 编辑
摘要: import requests# 定义页数page = 1# 书籍信息start_url = 'https://www.ximalaya.com/revision/category/queryCategoryPageAlbums?category=youshengshu&subcategory=ya 阅读全文
posted @ 2019-11-14 09:13 葵儿啊 阅读(195) 评论(0) 推荐(0) 编辑
摘要: import requestsfrom lxml import etreeimport os#页数page = 0#统计图片数量num = 1#网址链接start_url = "http://pic.netbian.com/index_{}.html"#1——1169页实际少一页for page i 阅读全文
posted @ 2019-11-08 16:32 葵儿啊 阅读(181) 评论(0) 推荐(0) 编辑
/*粒子线条,鼠标移动会以鼠标为中心吸附的特效*/