网站首页 站内搜索

搜索结果

查询Tags标签: module,共有 604条记录
  • JS 模块化 - 03 AMD 规范与 Require JS

    1 AMD 规范介绍AMD 规范,全称 Asynchronous Module Definition,异步模块定义,模块之间的依赖可以被异步加载。AMD 规范由 Common JS 规范演进而来,前文介绍 Common JS 规范时说过,浏览器端无法直接使用 Common JS,需要使用 browserify 编译后才能运行。而 AMD 规范规…

    2022/12/3 1:23:56 人评论 次浏览
  • Python解释器路径寻找规则

    Python编辑器路径寻址总结Python寻找解释器顺序Python编程优化这场表演邀请了三位角色:run.sh、main.py、path.sh,拍摄场地选在了 Windows -> Git Bash群演1号 run.sh#!/usr/bin bash. ./path.sh || exit -1# demo.py无法直接找到是因为 $PATH中已经没有 工作目录pyt…

    2022/12/2 23:24:00 人评论 次浏览
  • 模块

    1.定义 模块:用来从逻辑上组织python代码(变量,函数,类,逻辑:实现一个功能),本质是一个.py结尾的python文件。 2.导入方法 import module_name import module1_name,module2_name from module_name import * from module_name import logger as logger_alex3.impo…

    2022/9/16 6:18:50 人评论 次浏览
  • 源码编译安装nginx

    nginx版本:1.22 安装依赖包: #yum -y install pcre-devel openssl openssl-devel GeoIP-devel.x86_64 #cd nginx-1.22.0/ #./configure --prefix=/export/server/nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_geoip_mod…

    2022/9/14 5:17:33 人评论 次浏览
  • nodejs require/import导包报错以及解决方法

    背景 最近发现一本nodejs的小册,在学习其中的代码时,发现里面用到了chalk-animation这个库,在install好这个库后,使用require()导入时报错 Error [ERR_REQUIRE_ESM]: require() of ES Module E:\...\code\node_modules\chalk-animation\index.js from E:\...\code\案例…

    2022/9/13 1:26:14 人评论 次浏览
  • 解决python使用过程出现的问题

    关于报错“AttributeError:partially initialized module‘requests‘has no attribute‘get‘的解决方法报错:AttributeError: partially initialized module ‘requests’ has no attribute ‘get’ (most likely due to a circular import) 解决办法:文件命名产生的问…

    2022/9/6 14:23:00 人评论 次浏览
  • [nginx]编译安装openresty

    前言 OpenResty是一个基于Nginx和Lua的高性能Web平台,其内部集成了大量精良的Lua库、第三方模块以及大多数的依赖项。用于方便地搭建能够处理超高并发、扩展性极高的动态 Web 应用、Web 服务和动态网关。 版本信息系统和应用 版本Debian 11-amd64位OpenResty 1.21.4.1步骤…

    2022/9/5 5:23:00 人评论 次浏览
  • 打包&发布Python项目

    概述打包与发布python项目主要包含三个过程,第一配置打包信息,主要通过setuptools工具实现;第二步打包生成wheel或者sdist(source distribution)文件,主要使用build工具;第三步将打包好的wheel、或者sdist文件发布到PYPI,使用twine工具。 pip install setuptools>…

    2022/9/3 1:24:41 人评论 次浏览
  • [Google] LeetCode 715 Range Module 线段树

    A Range Module is a module that tracks ranges of numbers. Design a data structure to track the ranges represented as half-open intervals and query about them. A half-open interval [left, right) denotes all the real numbers x where left <= x < ri…

    2022/8/30 23:26:21 人评论 次浏览
  • PowerShell教程 - 模块管理(Modules Management)

    更新记录 转载请注明出处。 2022年8月29日 发布。 2022年8月29日 从笔记迁移到博客。模块管理(Modules Management) 模块和管理单元(Modules and Snap-Ins) Modules were introduced with the release of PowerShell version 2.0 Modules represented a significant s…

    2022/8/30 5:24:06 人评论 次浏览
  • postgresql update duplicate key value violates unique constraint

    问题 使用SQL update 语句,出现 duplicate key value violates unique constraint 错误 解决方法 //把 ModuleID string `json:"module_id" binding:"required" gorm:"unique"` //改成 ModuleID string …

    2022/8/27 2:23:06 人评论 次浏览
  • [Javascript] Module Pattern

    Module pattern provide a way to have both public and private pieces with the export keyword. This protects values from leaking into the global scope or ending up in a naming collision.secretis a private variable inside Math.js which is not accessible …

    2022/8/27 1:23:21 人评论 次浏览
  • ES Modules in Node.js

    ESM 在 Node.js 中的支持情况 Node.js 在 8.5 版本过后,开始以实验特性支持 ESMNode 中使用 ESM 的条件及步骤Node 版本需大于 8.5 模块文件名需为 mjs 启动 node 时需加 experimental-modules 参数,该参数表示启用 Node.js 的实验特性node --experimental-modules inde…

    2022/8/26 14:26:24 人评论 次浏览
  • 内核模块实验2

    修改驱动模块代码位置及路径之前实验编译的lx_hello.ko是在内核源码目录文件夹中直接添加的,不方便查看阅读,因此将代码移出。 -修改Makefile 如下KERNELDIR := ~/project/lx/android11_v2/RK3568_Android11/kernel CURRENT_PATH := $(shell pwd) obj-m := lx_hello.o bu…

    2022/8/25 6:24:09 人评论 次浏览
  • PowerShell

    前提:先通过微软商店安装 Windows Terminal 和 PowerShell配置文件修改配置文件配置文件修改如下(由于几乎只有 PowerShell 与 Windows 完美契合,所以其他终端的配置都删掉了):安装插件等(下载如果很慢的话则需要魔法) 打开安装的PowerShell,执行如下命令: # 安装…

    2022/8/24 5:22:52 人评论 次浏览
共604记录«上一页1234...41下一页»
扫一扫关注最新编程教程