上一页 1 2 3 4 5 6 ··· 30 下一页
摘要: 变量绑定(声明变量) let 变量名: 类型 = 变量值; let 变量名 = 变量值[类型]; // 整型 默认 i32;浮点 默认 f64 所有的 let 绑定都必须尾接;,代码块也不例外。 mut 可以通过重新声明的方式来改变变量类型 可以下划线改善数字的可读性 声明常量 const / st 阅读全文
posted @ 2023-10-19 00:49 海胆Sur 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 飞叶 视频 npm 16~17年 npm@3 之前 依赖通过 简单树形 package 嵌套 两个问题: 文件深度过深,在window系统一些应用工具下会处理不了过长的路径不同包依赖相同包会拷贝大量副本,占用磁盘空间 SemVer 版本管理导致依赖安装不确定 缓存能力存在问题,且无离线模式 npm@ 阅读全文
posted @ 2023-09-12 11:19 海胆Sur 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 绘制图形 绘制三角形 标示 div { width: 0; height: 0; border: 5px solid transparent; border-left-color: red; } 同理可制作直角三角形 绘制 梯形 .div { height: 0; width: 50px; bord 阅读全文
posted @ 2023-07-06 10:41 海胆Sur 阅读(50) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2023-06-16 15:46 海胆Sur 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 角度canvassvg绘图方式通过绘制像素点来创建图像,绘制过程是即时的,绘制的元素不保留在 DOM 中,因此对于大量绘图以及动画效果更为适合。通过创建矢量图形来创建图像,绘制过程是基于 XML 的,绘制的元素是保留在 DOM 中的,因此对于静态图形、数据可视化等场景更为适合。分辨率由于是像素级别的 阅读全文
posted @ 2023-06-15 16:13 海胆Sur 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 更多 input type 属性 number:数字; tel:电话; search:搜索; email:邮箱; url:地址; date:年月日; time:时分秒; month:月; week:周; time:时间; color:生成颜色选择表单; range:范围 原有 text:文本 rad 阅读全文
posted @ 2023-06-14 15:27 海胆Sur 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 全屏是否可用:Document.fullscreenEnabled 开启全屏:Document.requestFullScreen() 该方法返回 promise 退出全屏:Document.exitFullscreen() 让当前元素退出全屏模式,会有一个全屏栈 获取元素全屏状态:Document 阅读全文
posted @ 2023-06-06 11:09 海胆Sur 阅读(13) 评论(0) 推荐(0) 编辑
摘要: pip install imageio imageio@2.30.0 文档中说 loop 默认为 0 也就是无限循环播放,但实际上只播放一次 images = [] numberlist = os.listdir('images/charGrayFrames') for i in range(len 阅读全文
posted @ 2023-06-05 16:25 海胆Sur 阅读(173) 评论(0) 推荐(0) 编辑
摘要: pip install pyautogui document import pyautogui pyautogui.size() pyautogui.position() 鼠标 To 是绝对坐标Rel 或者 不带 To 是相对坐标 pyautogui.moveTo(x=None, y=None, d 阅读全文
posted @ 2023-06-02 09:58 海胆Sur 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 参考博客 pip install pyinstaller 打包命令 pyinstaller -F -w -i xxx.ico xxxx.py pyinstaller -D -w -i xxx.ico xxxx.py -F 参数代表制作独立的可执行程序。-w 指程序启动的时候不会打开命令行。如果不加- 阅读全文
posted @ 2023-06-01 14:20 海胆Sur 阅读(7) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 30 下一页
点击右上角即可分享
微信分享提示