2020-03-01

代码
Pattern p = Pattern.compile("(?<!c)a(//d+)bd");
Matcher m = p.matcher("da12bka3434bdca4343bdca234bm");
while(m.
2020-03-01

继续使用开源框架:https://github.com/google/gson
比如我是这样一个json数据:{"temp": 45, "Humidity": 78, "smoke": "safe"}
我们如何把这个解析为一个json对象?
2020-03-01

这里我使用第三方库:https://github.com/square/okhttp/
引入方法:implementation("com.squareup.okhttp3:okhttp:4.4.0")
但是引入报错。。。
emm,研究了半
2020-03-01

2020-03-01

内网穿透内网穿透我使用的是nps,官方文档如下https://ehang-io.github.io/nps/#/
先下载linux的服务端
下载好上传到服务器解压 tar -zxf linux_arm64_server.tar.gz
最后解
2020-02-29

2020-02-29

先安装库
pip install pyinstaller
# 或者
python -m pip install pyinstaller
##使用
pyinstaller -F helloworld.py
其中,-F 表示打包成单独的 .ex
2020-02-28

开启代理
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

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