上一页 1 2 3 4 5 6 ··· 9 下一页

php 导入excel数据

摘要: composer require phpoffice/phpspreadsheet use PhpOffice\PhpSpreadsheet\Reader\Xlsx; $reader = new Xlsx(); $spreadsheet = $reader->load($fileName); $wo 阅读全文
posted @ 2025-04-06 16:26 少杨 阅读(11) 评论(0) 推荐(0)

python 获取部分excel内容

摘要: python 获取部分excel内容 pip install openpyxl from openpyxl import load_workbook from openpyxl import Workbook # 加载现有的工作簿 wb = load_workbook('product_item.x 阅读全文
posted @ 2025-03-08 17:16 少杨 阅读(6) 评论(0) 推荐(0)

yii2查询 id为下标name为值 的数组

摘要: Category::find()->select('name')->indexBy('id')->column();查询ID下标,name 为数组的值array(2) { [2]=> string(12) "新闻中心" [3]=> string(12) "产品" } 阅读全文
posted @ 2025-03-07 17:11 少杨 阅读(10) 评论(0) 推荐(0)

部署ftp服务器 并上传文件

摘要: 部署 docker run -d -v /data/vsftp:/home/vsftpd -p 20:20 -p 21:21 -p 47400-47470:47400-47470 -e FTP_USER=user -e FTP_PASS=1234 -e PASV_ADDRESS=0.0.0.0 -e 阅读全文
posted @ 2025-02-25 14:00 少杨 阅读(9) 评论(0) 推荐(0)

docker 设置代理

摘要: docker 设置代理 Create or edit the /etc/systemd/system/docker.service.d/proxy.conf file and add: [Service] Environment="HTTP_PROXY=socks5://127.0.0.1:<PRO 阅读全文
posted @ 2025-02-25 13:50 少杨 阅读(48) 评论(0) 推荐(0)

vscode 快捷键

摘要: { "key": "cmd+k cmd+0", "command": "editor.foldAll", "when": "editorTextFocus && foldingEnabled"} 先按下 cmd+k ,再按下 cmd+0 收起所有函数 先按下cmd+k ,再按下 cmd+j 打开所有 阅读全文
posted @ 2025-01-13 17:05 少杨 阅读(24) 评论(0) 推荐(0)

linux 开发ffmpeg 程序

摘要: linux 开发ffmpeg 程序 Makefile CC=gcc target: $(CC) -o main main.c -lavcodec -lavformat -lswresample -lavutil -lavfilter -lavdevice -lswscale -lm # $(CC) 阅读全文
posted @ 2025-01-03 16:58 少杨 阅读(27) 评论(0) 推荐(0)

h5播放 加密m3u8文件

摘要: h5播放 加密m3u8文件 1. openssl rand 16 > enc.key 2. openssl rand 16 -hex # 获取字符串,key_info.txt 文件用 3. 新建文件:key_info.txt http://127.0.0.1:8080/enc.keyenc.keyd 阅读全文
posted @ 2024-12-30 18:28 少杨 阅读(341) 评论(0) 推荐(0)

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

摘要: error: RPC failed; curl 18 transfer closed with outstanding read data remaining error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PRO 阅读全文
posted @ 2024-11-24 17:01 少杨 阅读(166) 评论(0) 推荐(0)

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

摘要: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools in 阅读全文
posted @ 2024-11-24 16:51 少杨 阅读(236) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 9 下一页