我的个人小站
java java
2020-03-01
正则表达式 正则表达式
代码 Pattern p = Pattern.compile("(?<!c)a(//d+)bd"); Matcher m = p.matcher("da12bka3434bdca4343bdca234bm"); while(m.
2020-03-01
json数据解析 json数据解析
继续使用开源框架:https://github.com/google/gson 比如我是这样一个json数据:{"temp": 45, "Humidity": 78, "smoke": "safe"} 我们如何把这个解析为一个json对象?
2020-03-01
http请求 http请求
这里我使用第三方库:https://github.com/square/okhttp/ 引入方法:implementation("com.squareup.okhttp3:okhttp:4.4.0") 但是引入报错。。。 emm,研究了半
2020-03-01
树莓派远程传送消息 树莓派远程传送消息
内网穿透内网穿透我使用的是nps,官方文档如下https://ehang-io.github.io/nps/#/ 先下载linux的服务端 下载好上传到服务器解压 tar -zxf linux_arm64_server.tar.gz 最后解
2020-02-29
打包exe文件 打包exe文件
先安装库 pip install pyinstaller # 或者 python -m pip install pyinstaller ##使用 pyinstaller -F helloworld.py 其中,-F 表示打包成单独的 .ex
2020-02-28
git代理问题 git代理问题
开启代理 git config --global https.proxy http://127.0.0.1:1080 git config --global https.proxy https://127.0.0.1:1080 取消代理
2020-02-28
git git
2020-02-28
正则相关 正则相关
获取文件后缀:re.search(".([a-z|A-Z]*?)$",s).group(1)
2020-02-28
下载图片 下载图片
下载图片的三种方式 os.makedirs('./image/', exist_ok=True) IMAGE_URL = "http://image.nationalgeographic.com.cn/2017/1122/20171122
2020-02-28
67 / 88