ICode9

精准搜索请尝试: 精确搜索
  • python-zip()函数-zip*函数-压缩-解压缩2022-08-19 15:01:49

    python-zip()函数-压缩-解压缩 zip()函数: 将多个序列(列表、元组、字典、集合、字符串以及 range() 构成的列表)按一定规则重新组成一组元组。 常与list()函数搭配使用,list()函数可将 一组元组 转变成列表类型,再可用迭代进行遍历处理 list1 = [11,12,13] tuple1 = (21,22,23) prin

  • conda安装报错:PermissionError [Errno 13] Permission denied2022-08-18 12:04:10

    原文链接 Anaconda创建环境,激活环境 conda create,keras安装失败: PermissionError [Errno 13] Permission denied Anaconda创建虚拟环境: conda create -n my_root Linux激活环境: source activate my_root Windows下激活环境: activate my_root 安装keras: conda install keras

  • tcl dictionary2022-08-17 07:00:48

    tcl dictionary 1. 创建字典——set/create dict create key1 value1 ... keyn valuen [multi keys/values] dict set dict_name key value [single key/value] dict set/create live demo 2. 获取字典key的value——get dict get dict_name key dict get live demo 3. 字典ke

  • json2022-08-14 00:31:33

    json也称为 javascript object notation 格式如下所示: >>> my_json={'name':'Python','address':{'porvince':'吉林','city':['长春','吉林']}}>>> my_json{'name': 'Py

  • 1037 Stars in Your Window 线段树 离散化 扫描线变式(需要push_down)2022-08-13 22:31:01

     链接:https://ac.nowcoder.com/acm/problem/51112来源:牛客网 题目描述 Fleeting time does not blur my memory of you. Can it really be 4 years since I first saw you? I still remember, vividly, on the beautiful Zhuhai Campus, 4 years ago, fr

  • nginx的日志切割-每天定时脚本执行2022-08-13 18:34:46

    日志切割时企业中常规动作,我们不会每天去手工执行一遍命令,通常是让脚本自己执行,于是我们可以将这个动作写进任务计划,每天凌晨自动执行。 #!/usr/bin/bash s_log="/usr/local/nginx/logs/access.log" d_log="/root/my_sh/nginx/logs/$(date +%Y-%m-%d_%H-%M-%S).log" d_log_dir=

  • mysql自动补全功能2022-08-12 16:00:29

    mysql自动补全功能 方案1:修改my.cnf 只能用于表/列 名 在mysql命令行有时为了方便想要按tbl键自动补全命令,以便节约时间。 具体方法如下: 第一步:修改my.cnf vi mysql/etc/my.cnf 将下图红框的代码注释,修改成如下代码: #disable-auto-rehash auto-rehash 第二步:退出,重新登录mysql

  • my.cnf 配置文档2022-08-08 16:34:13

    原文:my.cnf配置文档详解-阿里云开发者社区 (aliyun.com) #在原配置文件中,添加以下内容: #启用二进制日志,默认存在/var/lib/mysql 下面 log-bin=mysqllog #本机数据库ID 标示。其中 master_id 必须为1到232之间的一个正整数值 server-id=1 #可以被从服务器复制的库。二进制需要同

  • Linux 安装Mysql 详细教程2022-08-08 15:05:08

    一、查看是否已经安装 Mysql rpm -qa | grep mysql 以下输出表示没有 [root@arcgis ~]# rpm -qa | grep mysql [root@arcgis ~]# 如果你查看出来有东西,可以使用下面命令将其删除(xxx 为文件全名) rpm -e xxx 二、下载官方 Mysql 包 https://downloads.mysql.com/archives/communi

  • 在 Python 中從字串中刪除逗號2022-08-08 14:31:31

    本教程解釋瞭如何使用 Python 從字串中刪除逗號。要從 Python 中的字串中刪除逗號,我們可以使用 replace() 方法或 re 包。 我們將使用下面程式碼片段中的字串來演示如何在 Python 中從字串中刪除逗號。   my_string="Delft, Stack, Netherlands" print(my_string) 輸出:   D

  • for循环2022-08-07 15:03:38

    for 循环,它常用于遍历字符串、列表、元组、字典、集合等序列类型,逐个获取序列中的各个元素。 for 迭代变量 in 字符串|列表|元组|字典|集合: 代码块 add = "www.qinjl.com" # for循环,遍历 add 字符串 for ch in add: print(ch, end="")运行结果为:www.qinjl.com result

  • Volume2022-08-06 19:18:48

    目录OverviewPod Volume with ConfigMap Overview Pod Volume with ConfigMap the yaml file contains configmap and pod. apiVersion: v1 kind: Pod metadata: name: my-pod-3 namespace: matt spec: containers: - name: my-pod-3 image: busybox #

  • mysql下的max_allowed_packet参数设置2022-08-04 02:00:38

    参考地址:https://blog.csdn.net/qq_34988304/article/details/92762504 MySQL根据配置文件会限制Server接受的数据包大小。有时候大的插入和更新会受 max_allowed_packet 参数限制,导致写入或者更新失败。(比方说导入数据库,数据表) 查看目前配置: 代码如下: mysql> show VARIABLES

  • 3_0-jinja2-vars.yml2022-08-03 23:02:13

    --- - hosts: serverf vars: my_name: demOn stUdent tasks: - name: print message debug: msg: - "This is my name {{ my_name }}" # 输出原始信息 - "This is my name {{ my_name | lower}}"

  • 729. My Calendar I2022-08-03 13:02:44

    You are implementing a program to use as your calendar. We can add a new event if adding the event will not cause a double booking. A double booking happens when two events have some non-empty intersection (i.e., some moment is common to both events.). Th

  • A Brief Statement for Joining "Cnblogs.com" (关于我选择博客园这件事)2022-08-01 13:31:08

    Monologue (写在前面) Back to my junior middle school days, my friend applied for a QQ for me and I became a heavy user of QQ then. It also made a habit for me to post some trivia of mine on Qzone with my mobile phone as most of my friends did. Time flies and

  • ES之数据迁移篇(使用snapshot快照)2022-08-01 11:01:55

    1.背景说明: 两个ES集群版本:5.6.8 旧集群:ER­QI­ES 三个节点:192.168.185.70,192.168.185.71,192.168.185.72 新集群:gzes­cluster 五个节点:10.181.92.184,10.181.92.185,10.181.92.186,10.181.92.187,10.181.92.188 2.修改elasticsearch.yml配置文件并重启集群 先禁用两个集群

  • Soldity0.8-Constants2022-07-31 23:01:36

    Constants are variables that cannot be modified. Their value is hard coded and using constants can save gas cost.   // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; contract Constants { // coding convention to uppercase constant variables

  • 模块和包2022-07-31 22:35:08

    一 模块 1 什么是模块?    常见的场景:一个模块就是一个包含了python定义和声明的文件,文件名就是模块名字加上.py的后缀。    但其实import加载的模块分为四个通用类别:  1 使用python编写的代码(.py文件) 2 已被编译为共享库或DLL的C或C++扩展 3 包好一组模块的包 4 使用C编写并

  • ES聚合查询详解(一)2022-07-30 17:00:33

    原文: https://laowan.blog.csdn.net/article/details/120845124   前言本文主要介绍ES中的聚合查询。 一、聚合查询简介聚合查询可以将数据汇总为度量、统计或其他分析。 聚合查询主要分为三个类别: Metric 指标聚合Bucket 桶聚合Pipeline 管道聚合二、聚合函数的使用1、如何运

  • shell学习笔记(2)2022-07-27 15:04:25

    1、shell传递参数 我们可以在执行 Shell 脚本时,向脚本传递参数,脚本内获取参数的格式为:$n。n 代表一个数字,1 为执行脚本的第一个参数,2 为执行脚本的第二个参数。 2、用来处理参数的特殊字符 参数处理说明 $# 传递到脚本的参数个数 $* 以一个单字符串显示所有向脚本传递的参数

  • 【sql】【String.format】【alter】mysql分表情况下新增一列不为空的列2022-07-26 18:33:37

    mysql分表情况下新增一列不为空的列,使用 【String.format】 生成alter语句 完成新增列的动作 新增列不为空,分表sql自动补0,新增列添加在指定列后   String sql = "ALTER TABLE my_table_%02d ADD my_column_2 bigint(20) NOT NULL after my_column_1;"; for (int i1 = 0;

  • win11安装oh my posh-未完成2022-07-24 17:01:46

    Windows | Oh My Posh 第一步,打开一个powershell,然后输入以下命令:    安装提示如下    接下来是安装字体,但遇到这个问题,原因是权限问题。Powershell脚本的4种执行权限介绍,Windows默认不允许任何脚本运行,我们可以使用"Set-ExecutionPolicy"cmdlet来改变的PowerShell环境,

  • python字符串切割2022-07-24 16:04:33

    字符串.split()#返回的数据类型 是列表 列表里面的元素都是字符串类型 my_str.split(str1, maxsplit) str1 可以不写,默认是空白字符(" " “\t” “\n”) 将my_str 这个字符串按照str1 进行切割, maxsplit 割几次 my_str = "hello world itcast and itcastcpp" my_str1 = my_

  • 【实验记录】7月22日-7月23日(使用perl代码对结果文件的重要信息进行提取汇总)2022-07-24 00:00:50

    一、对每一个repeat family的转录因子的富集进行提取。 由于我好久没有用perl了,每次想要对文本文件进行提取的时候,总会想到perl。但是由于对代码的生疏(好久没有用了),主要的意思是明白的,但是具体的指令写起来就特别的费劲。 现在开始一步一步的写,给自己一个小时的时间,写到晚上十点。

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

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

ICode9版权所有