会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiaodebing
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
11
下一页
2018年10月31日
python bytes类型去除尾部字节
摘要: b'\x01\x02'b'\x01\x02'b'\x01'
阅读全文
posted @ 2018-10-31 08:36 xiaodebing
阅读(2771)
评论(0)
推荐(0)
2018年10月27日
安装pycrypto2.6.1报错
摘要: https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz https://blog.csdn.net/a624806998/article/details/78596543 看到要装vc这种庞然大物我绝望了。还是换个法
阅读全文
posted @ 2018-10-27 10:10 xiaodebing
阅读(1623)
评论(0)
推荐(0)
2018年10月26日
python logging
摘要: https://www.cnblogs.com/liujiacai/p/7804848.html C:\Windows\System32>pip freeze certifi==2018.4.16 chardet==3.0.4 Django==2.0.6 idna==2.7 PyMySQL==0.8
阅读全文
posted @ 2018-10-26 10:42 xiaodebing
阅读(156)
评论(0)
推荐(0)
2018年10月24日
fiddler模拟返回
摘要: 先把正常的请求响应报文保存为文件,操作方法为选中对应请求>右键> save >reponse>entire response 点击改请求,点击右侧autoresponder,点击add rule,选中刚加的这个rule,在下方的rule editor的第二栏选find a file 选中上一步保存的
阅读全文
posted @ 2018-10-24 13:25 xiaodebing
阅读(779)
评论(0)
推荐(0)
2018年10月22日
保存指定目录及其子目录的jpg文件
摘要: import os txt_path = 't1.txt' f = open(txt_path, mode='a', encoding='utf-8') def all_path(dirname): result = [] for maindir, subdir, file_name_list in os.walk(dirname): for filename...
阅读全文
posted @ 2018-10-22 09:48 xiaodebing
阅读(123)
评论(0)
推荐(0)
2018年10月19日
原版js生成银行卡号
摘要: 改成java写法: package cn.x.common; import java.text.DecimalFormat; public class BankCardGenerator { public static void main(String[] args) { System.out.pr
阅读全文
posted @ 2018-10-19 10:22 xiaodebing
阅读(1890)
评论(0)
推荐(0)
2018年10月17日
jsr223 md5
摘要: import java.security.MessageDigest; String content = "xxx"; MessageDigest digest = MessageDigest.getInstance("MD5"); digest.update(content.getBytes()); byte[] messageDigest = digest.digest(); vars...
阅读全文
posted @ 2018-10-17 11:09 xiaodebing
阅读(194)
评论(0)
推荐(0)
2018年10月8日
okhttp post form表单
摘要: 1 OkHttpClient okHttpClient = new OkHttpClient.Builder().build(); 2 FormBody formBody = new FormBody.Builder() 3 .add("method","applyLimiteUpdate") 4
阅读全文
posted @ 2018-10-08 17:35 xiaodebing
阅读(7883)
评论(0)
推荐(0)
okhttp添加自定义cookie
摘要: 1 package cn.x.request; 2 3 import java.util.ArrayList; 4 import java.util.HashMap; 5 import java.util.List; 6 7 import okhttp3.Call; 8 import okhttp3
阅读全文
posted @ 2018-10-08 12:03 xiaodebing
阅读(5812)
评论(0)
推荐(0)
2018年9月30日
mybatis mapper配置
摘要: dao类中多个参数需要在前面加注解@Param 执行insert之后需要session.commit()
阅读全文
posted @ 2018-09-30 13:37 xiaodebing
阅读(372)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
11
下一页
公告