摘要: 目前安卓测试正常,需要把抖音拍的照片用canvas反转过来 直接上代码 html <camera device-position="front" flash="off" onError="error" style="width: 320px;height:190px;" frame-size="la 阅读全文
posted @ 2023-03-03 13:59 呦吼吼吼~ 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 废话不多说,直接上代码 from PIL import Image from PIL import ImageSequence imgs = Image.open("xxx.gif") image_list = [] for frame in ImageSequence.Iterator(imgs) 阅读全文
posted @ 2023-01-13 15:17 呦吼吼吼~ 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 如图: golang 会自动同步,单击 参考 url https://www.jetbrains.com/help/go/create-a-project-with-go-modules-integration.html#working-with-dependencies 阅读全文
posted @ 2022-03-30 11:18 呦吼吼吼~ 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 错误 /usr/local/Cellar/go/1.16.3/libexec/pkg/tool/darwin_amd64/link: running clang failed: exit status 1 xcrun: error: invalid active developer path (/L 阅读全文
posted @ 2021-10-28 20:24 呦吼吼吼~ 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 出现问题的正则: rewrite ^/(.+)/index.html /$1/ permanent; 关键词: permanent,$1 $1表示路径中正则表达式匹配的第一个参数。 permanent 是 永久性重定向。请求日志中的状态码为301 第一个请求匹配到这条正则 返回 301 和 一个 新 阅读全文
posted @ 2020-10-05 17:00 呦吼吼吼~ 阅读(1023) 评论(0) 推荐(0) 编辑
摘要: error :django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? 启动django后突然发现这个错误 排查思路: 查看 django mysql 阅读全文
posted @ 2020-10-05 10:17 呦吼吼吼~ 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 1.2 影响程序运行的因素(存储设备) hello.c 的程序,是无法感觉到运行过程的,但是在计算机是需要进行大量的计算,起初hello程序的机器指令是存放在磁盘上的,当程序加载时,他们被复制到主存,当处理器运行程序时,指定从主存中复制到处理器,相似地,数 据 串 “h e l­ io, w orl 阅读全文
posted @ 2020-09-13 21:57 呦吼吼吼~ 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 使用timeout-decorator pip install timeout-decorator import time import timeout_decorator @timeout_decorator.timeout(3, use_signals=False) #如果改为 True 会报s 阅读全文
posted @ 2020-08-24 10:30 呦吼吼吼~ 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 前言 计算机能运作,是基于硬件和软件来运行程序,系统会追着时间方式不断变化,但是内在的概念基本不会改变,所以单纯的学习新的工具,短期内收益增加会明显,但是长期来看,缺乏核心竞争力(-毕竟体力和精神力无法和年轻人相比), 这样就会出现吃青春饭的现象,所以学习机器内在运行原理非常重要,因为这块儿东西,需 阅读全文
posted @ 2020-08-23 17:41 呦吼吼吼~ 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 由于django 退出总是不自动关闭, 需要杀死之前的进程 kill `lsof -i:8000 |grep Python|awk '{print $2}'` 阅读全文
posted @ 2020-07-17 10:17 呦吼吼吼~ 阅读(578) 评论(0) 推荐(0) 编辑