07 2021 档案
摘要:下载 https://archive.apache.org/dist/hadoop/common/hadoop-2.7.2/ jdk 安装 https://blog.csdn.net/zhwyj1019/article/details/81103531 设置 新的用户 useradd hadoop
阅读全文
摘要:#目标图 img_b64decode = base64.b64decode(target) image_io = io.BytesIO(img_b64decode) img = Image.open(image_io).convert("RGB") # 转灰度 target_gray = cv2.c
阅读全文
摘要:原图 拼接后 image = b'iVBORw0KGgoAAAANSUhEUgAAAC8AAACbCAYAAADyfMLPAAAQ/UlEQVR42u2aCXCU53nHnUzbNMcktT2x08QGbMDmFocNMuIQCAECJJCE0AmSAB0gJCTQfSB0oBvdWu3qWGl3d
阅读全文
摘要:https://www.cnblogs.com/hanyanling/p/13472711.html const fs = require('fs'); const { parse } = require("@babel/parser"); const traverse = require("@ba
阅读全文
摘要:"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isArrayExpression = isArrayExpression; exports.isAssignmentExpres
阅读全文
摘要:function isLiteral(node, opts) { if (!node) return false; const nodeType = node.type; if ("StringLiteral" nodeType || "NumericLiteral" nodeType || "Nu
阅读全文
摘要:Reflect对象的设计目的 1.将Object对象的一些明显属于语言内部的方法(比如Object.defineProperty),放到Reflect对象上。现阶段,某些方法同时在Object和Reflect对象上部署,未来的新方法将只部署在Reflect对象上。也就是说,从Reflect对象上可以
阅读全文
摘要:https://blog.csdn.net/qq523176585/article/details/110298488 options = { retainLines:true // 保留源代码的行号 comments:true //是否保留注释 compact:true //是否压缩代码 } im
阅读全文
摘要:let slice = Array.prototype.slice slice.call(document.querySelectorAll("li"))
阅读全文
摘要:for (var i = 1; i < 99999; i++) window.clearInterval(i);
阅读全文
摘要:const user = { data:{name:"angdh",age:11}, set age(value){ if(typeof value != "number"){ throw new Error("xxx") } this.data.age = value; }, get age(){
阅读全文
摘要:冻结 不能 添加 不能 修改 不能 删除 const user = { name:"angdh", age:11 }; Object.freeze(user); console.log( JSON.stringify(Object.getOwnPropertyDescriptors(user), n
阅读全文
摘要:封闭对象 不能往对象中添加属性 不能修改 不能重新定义特征 const user = { name:"angdh", age:11 }; Object.seal(user); console.log( JSON.stringify(Object.getOwnPropertyDescriptors(u
阅读全文
摘要:const user = { name:"angdh", age:11 }; //不容许添加属性 Object.preventExtensions(user); //检查是否可以添加属性 if (Object.isExtensible(user)){ user.site = "www.sssss";
阅读全文
摘要:var user = { name:"angdh", age:11, }; console.log( JSON.stringify(Object.getOwnPropertyDescriptors(user),null,2) ); { "name": { "value": "angdh", "wri
阅读全文