05 2022 档案
摘要:使用pdfparser对PDF转换成文本形式,转换后没有格式。 原始PDF: 转换成文本: 第一步:安装pdfparser composer require smalot/pdfparser 第二步:使用 $parser = new \Smalot\PdfParser\Parser(); $pdf
阅读全文
摘要:public function dominant_color() { $image = 'D:/Python/flow/test_photos/12240303_80d87f77a3_n.jpg'; $rTotal = $gTotal = $bTotal = $total = 0; $i = ima
阅读全文
摘要:在Linux环境下,使用Shell脚本自动备份数据库,需要用到 crontab 定时任务,以下是使用 mysqldump 方式对数据库备份 1、新建shell脚本,这里命名为 dbbackup.sh /usr/bin/mysqldump -u用户名 -p密码 -h 数据库IP -R --opt 要备
阅读全文