ICode9

精准搜索请尝试: 精确搜索
  • ftp2020-05-17 19:06:35

    ftp 目录ftp1. ftp简介2. ftp架构3. ftp数据连接模式4. 用户认证方式5. vsftpd5.1 vsftpd安装5.2 vsftpd配置参数5.3 vsftp 配置示例5.3.1 匿名用户配置示例5.3.2虚拟用户配置示例 1. ftp简介 网络文件共享服务主流的主要有三种,分别是ftp、nfs、samba。 ​ FTP是File Transfer

  • 闭包的特殊用法2020-05-16 16:55:40

    1 # 闭包的特殊用途:不修改源代码的前提下,添加新功能 2 # 添加日志输出信息 3 import time 4 def writeLog(func): 5 try: 6 file = open('writeLog.txt','a',encoding='utf-8') 7 # 向文件中写入日志信息(访问:文件名 时间:xxxx-xx-xx) 8 file

  • May LeetCoding Challenge14 之 字典树2020-05-14 21:03:35

    字典树结点结构: class Node{ boolean isWord; TreeMap<Character, Node> next; } 字典树的应用: 1.自动补全 2.拼写检查 3.IP 路由 4.预测文字 字典树的局限: 空间占用大。优化方法有压缩字典树。 字典树主要有如下三点性质: 1. 根节点不包含字符,除根节点意外每个节点只包含一个字符

  • May LeetCoding Challenge13 之 单调栈2020-05-13 21:07:26

    所谓单调栈,即栈中的元素单调递增 或 单调递减 本题用单调栈将数组维护成一个单调递增的集合。用k记录删除的元素个数。 特别注意三点: 1.如果num本身为递增序列,需要从从栈中弹出k个元素。 2.需要删除队头为0的元素,可以初始化一个为true的bool型变量,一旦开始的头部不等于0,bool型变

  • May LeetCoding Challenge12 之 二分搜索2020-05-12 16:58:10

    本题有两种解法, 第一种为暴力法,线性搜索。 但因为题目为递增序列中查找一个数,自然会有第二种方法:二分搜索法。 JAVA class Solution { public int singleNonDuplicate(int[] nums) { int res = nums[0]; for(int i = 1; i < nums.length; i += 2){

  • May LeetCoding Challenge5 之 字符转ASCII码2020-05-05 17:55:52

    Python知识点: ord() 字符转ASCII码,chr() ASCII码转字符。 count = collections.Counter(s)  Counte可以理解为一个计数器,可以传入一个list或者string。返回一个({:})。其中.most common(2) 表示出现次数最高的前两个。 enumerate()是枚举,可以在循环中枚举数组中的下标和值。 JAVA

  • May LeetCoding Challenge 之 异或运算2020-05-04 19:52:11

    & 与 两个位都为1时,结果才为1 | 或 两个位都为0时,结果才为0 ^ 异或 两个位相同为0,相异为1 ~ 取反 0变1,1变0 << 左移 各二进位全部左移若干位,高位丢弃,低位补0 >> 右移 各二进位全部右移若干位,对无符号数,高位补0,有符号数,各编译器处理方法不一样,有的补符号位(算术右移),有

  • 在 foreach 中操作集合时报错:Collection was modified; enumeration operation may not execute.2020-05-04 11:04:16

    错误信息:System.InvalidOperationException: Collection was modified; enumeration operation may not execute. 在foreach操作集合时候可能会遇到这个提示 原:  foreach (var stockEnterItem in stockEnter.List_StockEnterItems){   //具体业务代码  } 如果出现如标题中的

  • Babel7.x完美解决严格模式报错:'caller', 'callee', and 'arguments' properties may2020-05-02 10:40:21

    问题描述 做项目用到了MUI的scroll控件 故此我引入了mui.min.js 然而 猝不及防地报错了: 错误信息: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them 原因 mui.js用到了’calle

  • Hey,May Day!2020-05-01 21:54:51

    今天是五月的第一天,好像是这学期第一次进行班级活动。嗯,想到大二分流后可能就不会再接触了,感觉还是有点不舍的。 昨晚熬过了零点,卧谈会开了好一会儿。今早睡到很晚了,几点醒的还记得,晨检截止前十分钟收到网格员的提醒。没几分钟,朋友打电话要开黑,于是起床动机来了。 …… 下午三点

  • 205. Isomorphic Strings2020-04-05 23:01:46

    Problem: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with another character while preserving the order of characte

  • harbor安装使用2020-04-05 14:06:14

    docker-compose版本有要求 curl -L https://github.com/docker/compose/releases/download/1.8.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose rz   harbor文件 tar zxf harbor-offline-installer-v1.5.0.tg

  • defining adolescence2020-04-02 12:52:08

    1 the period of development that we call adolescence is and exciting one. 2 it is filled with turmoil and growth toward independence and the beginning of lifelong commitments 3 it is clearly a period of transition from the dependence of childhood to the i

  • nbconvert failed: xelatex not found on PATH, if you have not installed xelatex you may need to do so2020-03-15 14:36:59

    问题描述 解决办法: 1. 安装pandoc 下载pandoc官方下载http://miktex.org/howto/install-miktex 其他可用CSDN资源下载地址 直接点击安装,默认安装即可,可选择安装位置。 然后配置环境变量,把安装路径配置到系统path中。如我的是将E:\IDE\Pandoc放置path中。 2. 安装miktex 直

  • Codechef MAY 15 Counting on a directed graph2020-02-04 22:03:30

    题目大意 给定一张 n 个点 m 条边的有向图,一个点对 (X,Y) 是合法的当且仅当存在一条从 1 到 X 的路径,一条从 1到 Y 的路径满足 它们除了 1 号点以外没有任何公共点。 统计合法的无序对(X,Y) 的个数。 数据范围 n ≤ 105, m ≤ 5 × 105 吉如一的题解 可以发现一个点对 (X, Y ) 是

  • leetcode-36 + this may be useful when development is performed under newer sdk version2020-01-15 22:05:33

    判断一个 9x9 的数独是否有效。只需要根据以下规则,验证已经填入的数字是否有效即可。 数字 1-9 在每一行只能出现一次。数字 1-9 在每一列只能出现一次。数字 1-9 在每一个以粗实线分隔的 3x3 宫内只能出现一次。 上图是一个部分填充的有效的数独。 数独部分空格内已填入

  • Hadoop的单机模式2020-01-13 22:53:10

    具体的官网链接为:https://hadoop.apache.org/docs/r2.10.0/hadoop-project-dist/hadoop-common/SingleCluster.html 官方Grep案例 [root@iZbp1efx14jd8471u20gpaZ hadoop-2.7.2]# mkdir input [root@iZbp1efx14jd8471u20gpaZ hadoop-2.7.2]# cp etc/hadoop/*.xml input [root@iZb

  • 外文投稿时应该如何填写有关Social Media的问题?2019-12-07 22:52:46

    外文投稿时应该如何填写有关Social Media的问题? 1 *Please supply our social media editor with a "tweet" or short blurb about your article, which may or may not be used or edited at the discretion of the journal, by inserting a message here (250 character limit)

  • JavaScript1 基础2019-12-07 14:52:12

    JavaScript的组成 ·ECMAScript  描述了语言的语法和基本对象/ ·DOM 文档对象模型,描述处理网页内容/ BOM 浏览器对象模型 描述与浏览器进行交互的方法和接口 引入方式/ head标签内/body标签内  一般在</body>结束标签钱插入script的标签 <script> ..........   </script> 外

  • WPF中Binding使用StringFormat格式化字符串方法2019-10-23 17:04:36

       转自:https://www.cnblogs.com/xuliming/articles/StringFormat.html 货币格式 <TextBlock Text="{Binding Price, StringFormat={}{0:C}}" /> // $123.46 货币格式,一位小数 <TextBox Text="{Binding Price, StringFormat={}{0:C1}}" /> // $1

  • WARN Connection to node 2 could not be established. Broker may not be available. (2019-10-12 10:03:50

    启动 kafka 集群, 出现这个问题 WARN Connection to node 2 could not be established. Broker may not be available. (  vi config/server.properties 修改下面的"your local host"为自己的host  listeners = PLAINTEXT://your.local.host:9092   

  • 图片访问报Tainted canvases may not be exported2019-10-10 09:03:34

    因为图片跨域访问导致,修改方案:在图片服务器上的nginx时增加配置: add_header Access-Control-Allow-Origin *;add_header Access-Control-Allow-Headers X-Requested-With;add_header Access-Control-Allow-Methods GET,POST,OPTIONS;在前端使用: image.crossOrigin = 'Anonymous'

  • [leetcode] 1.Two Sum2019-09-21 18:00:48

    目录汇总 1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice. Example: Given nums

  • js领域:Thu May 12 2019 11:23:00 GMT+0800 (中国标准时间)转化为yyyy-MM-dd2019-09-20 10:03:33

    代码如下 var d = new Date('Thu May 12 2019 11:23:00 GMT+0800 (中国标准时间)'); d=d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() + ':' + d.getSe

  • 关于A HostProvider may not be empty! ---ip地址没有配到公司内网2019-09-17 10:05:48

    关于错误 A HostProvider may not be empty! A HostProvider may not be empty!. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'manageController': Injection of resource dependencies failed; nested exception is

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有