我的个人小站
树莓派远程传送消息 树莓派远程传送消息
内网穿透内网穿透我使用的是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
文件处理相关 文件处理相关
1.判断文件是否存在 os.path.isfile('test.txt') 2.文件夹是否存在 os.path.exists(directory) 3.创建文件夹 os.makedirs("imgs")
2020-02-28
数组合并 数组合并
1.直接用+号2.使用extend array=array1.extend(array2)3.使用np import numpy as np arr1=[1,2,3] arr2=[4,5,6] print(np.append(arr1,ar
2020-02-28
66 / 68