content-length 设置后请求响应头没有?

  • larwas
  • 2022-04-03 17:08:32
  • php
  • PHP
header("ContentRange: 0".($filesize1)."/".$filesize);```PHP```
阅读全文

PYTHON使用tesseract-ocr注意事项

安装文件内容替换:`D:\Python\Python38\Lib\sitepackages\pytesseract\pytesseract.py`中 `tesseract_cmd = 'D:/Program Files/TesseractOCR/tesseract.exe'`
阅读全文

python安装dilb库提示:No CMAKE_C_COMPILER could be found.

No CMAKE_C_COMPILER could be found.
阅读全文

js排序

比值函数比较函数的目的是定义另一种排序顺序。比较函数应该返回一个负,零或正值,这取决于参数:```function(a, b){return ab}```数字排序默认地,sort() 函数按照`字符串顺序`对值进行排序。该函数很适合字符串("Apple" 会排在 "Banana" 之前)。不过,如果数字按照字符串来排序,则 "25" 大于 "100",因为 "2" 大于 "1"。正因如此,sort() 方法在对数值排序时会产生不正确的结果。
阅读全文

实现苹果微信可一键复制内容

  • Larwas
  • 2020-12-25 07:43:46
  • php
  • PHP
HTML```<div id="layuimlayer0" class="layuimlayer layuimlayer0" style="display: none;" index="0"<div class="layuimlayershade"</div<div class="layuimlayermain"<div class="layuimlayersection"<div class="layuimlayerchild layuimlayerlayuilayerrim layuiman
阅读全文

phpstrome 添加右键菜单"open folder as phpStrom Project"

右键添加 "open folder as phpStrom Project"`win+r` 输入`regedit` 打开注册表,进入 `\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\`点击 `shell` , 右键 新增 `项` ,命名为 `phpstrome`点击 `phpstrome` , 右边空白有个名称为`(默认)`的,修改值为 `open folder as phpStrom Project`再一次
阅读全文

监控动态加载的input框值的变化

  • Larwas
  • 2020-12-08 10:22:03
  • php
  • PHP
//动态监控第一个input,并修改出票手机 $("body").on("input propertychange","input",function(){ //如果输入非数字,则替换为'' console.log(2222222222) console.log(this.value) });
阅读全文

快速查找并卸载Python

一、卸载Python31、卸载python3rpm qa|grep python3|xargs rpm ev allmatches nodeps 2、 删除所有残余文件whereis python3 |xargs rm frv3、查看现有安装的pythonwhereis python
阅读全文

Nginx+uwsgi+Python3.6.8部署Flask项目

运行需要安装ghostscript具体要求:https://github.com/deimo/pdfcompress 接口说明 安装python3.6.8由于是编译安装,所以需要确认相应的依赖包已经安```yum install y gcc zlib sqlitedevel libXcomposite libXcursor libXi libXtst libXScrnSaver libXrandr atk atspi2atk gtk3 openssldevel```
阅读全文

Pyppeteer 使用

基础用法```pythonimport asynciofrom pyppeteer import launchasync def main(): headless参数设为False,则变成有头模式 Pyppeteer支持字典和关键字传参,Puppeteer只支持字典传参 指定引擎路径 exepath = r'C:\Users\Administrator\AppData\Local\pyppeteer\pyppeteer\
阅读全文