我的个人小站
03
01
简单httpserver 简单httpserver
废话不多少,直接上代码 host = ('', 8888) class Resquest(BaseHTTPRequestHandler): def do_GET(self): self.send_response(2
2020-03-01
01
01
01
正则表达式 正则表达式
代码 Pattern p = Pattern.compile("(?<!c)a(//d+)bd"); Matcher m = p.matcher("da12bka3434bdca4343bdca234bm"); while(m.
2020-03-01
01
json数据解析 json数据解析
继续使用开源框架:https://github.com/google/gson 比如我是这样一个json数据:{"temp": 45, "Humidity": 78, "smoke": "safe"} 我们如何把这个解析为一个json对象?
2020-03-01
01
http请求 http请求
这里我使用第三方库:https://github.com/square/okhttp/ 引入方法:implementation("com.squareup.okhttp3:okhttp:4.4.0") 但是引入报错。。。 emm,研究了半
2020-03-01
01
02
29
树莓派远程传送消息 树莓派远程传送消息
内网穿透内网穿透我使用的是nps,官方文档如下https://ehang-io.github.io/nps/#/ 先下载linux的服务端 下载好上传到服务器解压 tar -zxf linux_arm64_server.tar.gz 最后解
2020-02-29
28
打包exe文件 打包exe文件
先安装库 pip install pyinstaller # 或者 python -m pip install pyinstaller ##使用 pyinstaller -F helloworld.py 其中,-F 表示打包成单独的 .ex
2020-02-28
80 / 105