ICode9

精准搜索请尝试: 精确搜索
  • argparse模块2020-09-29 13:01:32

    这篇教程旨在作为 argparse 的入门介绍,此模块是 Python 标准库中推荐的命令行解析模块。   注解 还有另外两个模块可以完成同样的任务,称为 getopt (对应于 C 语言中的 getopt() 函数) 和被弃用的 optparse。还要注意 argparse 是基于 optparse 的,因此用法与其非常相

  • centos7 安装supervisor2020-04-08 15:06:25

    1. 安装必要的包: yum install python-setuptools easy_install pip pip install supervisor echo_supervisord_conf > /etc/supervisord.conf或者yum install -y supervisor    2. 新建自定义进程脚本目录 mkdir /etc/supervisord.d/    3. 创建supervisord启动脚本 #!

  • undefined macro: AC_PROG_LIBTOOL2020-04-08 10:38:10

    undefined macro: AC_PROG_LIBTOOL 错误问题解决 在编译protobuf或者其他需要执行 autogen.sh 的源码的时候可能会出现如下错误: undefined macro: AC_PROG_LIBTOOL AC_PROG_LIBTOOL宏是libtool工具里面定义的,可以使用如下指令查看当前系统是否安装: libtool --version 如果

  • error: possibly undefined macro: AC_PROG_GNU_M42019-11-26 12:56:12

    背景            编译bison出错configure.ac:233: error: possibly undefined macro: AC_PROG_GNU_M4      If this token and others are legitimate, please use m4_pattern_allow.      See the Autoconf documentation.autoreconf: /usr/local/bin/autoc

  • Makefile 文件格式2019-11-05 23:53:22

    Makefile包含 目标文件、依赖文件、可运行命令三部分。  每部分的基本格式例如以下: test: prog.o  code.o          gcc  -o  test   prog.o   code.o 当中,第一行的test是目标文件。 prog.o、code.o是依赖文件;            第二行的gcc -o test prog.o code.o是

  • mysql复制+keepalived+haproxy配置(负载均衡)2019-11-01 17:53:50

    双主+keepalived+haproxy配置(负载均衡) 实验系统:CentOS 6.5_x86_64实验前提:防火墙和selinux都关闭实验软件:keepalived-1.2.13  haproxy-1.8.13  mysql—5.7.21主1 ip:192.168.226.134主2 ip:192.168.226.135vip 192.168.226.150 一、安装mysql 获取mysql安装包:wget https://d

  • 以main.c和sum.c为例浅析编译器如何驱动程序2019-10-01 21:57:41

    本文以main.c和sum.c为例浅析编译器如何驱动程序。 先上代码。 main.c 1 /* main.c */ 2 /* $begin main */ 3 int sum(int *a, int n); 4 5 int array[2] = {1, 2}; 6 7 int main() 8 { 9 int val = sum(array, 2);10 return val;11 }12 /* $end main */13 //wangti

  • mysql 列子查询2019-09-16 10:00:55

    #案例:返回location_id是1400或1700的部门中的所有员工 SELECT last_name FROM employees WHERE department_id IN( SELECT DISTINCT department_id FROM departments WHERE location_id IN (1400,1700) ); #案例:返回其他工种中比job_id为'IT_PROG'部门任一工资低的

  • C词法分析器的Python简单实现2019-08-25 18:54:13

    原文引用https://www.dazhuanlan.com/2019/08/25/5d62598fd13ee/ 在学习编译原理的课程设计中,需要设计一个词法分许进程。于是尝试用Python来简单实现C语言词法分析器。其中其实并没有什么具体需要克服的难处,只要将部分的词法分析DFA设计好,实现起来思路便更清晰。   1、前言 C

  • jenkins 推送脚本2019-08-05 15:06:40

    #!/bin/bash # ################################################################################ # # $Name:         xxx.sh  # $Version:      xxx # $Function:    xxx # $Author:       xxxx # $organization: xxxx # $Create Date:  xxx # $Descriptio

  • 使用代码获得table whered use list2019-07-03 10:47:55

    Created by Jerry Wang, last modified on Dec 21, 2014 执行report,输入table name: 输出所有使用到comm_product这个ddic object的report name: spot check: source code: PARAMETERS: tab TYPE D010TAB-TABNAME OBLIGATORY DEFAULT 'COMM_PRODUCT'. DATA: lt_prog TYPE

  • Activemq(centos7)开机自启动服务2019-06-13 10:04:31

    编辑服务文件 vi /etc/init.d/activemq 文件内容如下 #!/bin/bash# chkconfig: 2345 10 90 # description: activemq ....prog=tomcatJAVA_HOME=/usr/local/java/jdk1.7.0_25export JAVA_HOMECATALANA_HOME=/home/activemqexport CATALINA_HOME case "$1" instart) echo &

  • centos6安装openresty2019-01-13 09:02:09

    1、安装依赖库 yum install readline-devel pcre-devel openssl-devel gcc 2、下载openresty wget --no-check-certificate https://openresty.org/download/openresty-1.11.2.2.tar.gz 3、解压文件 tar xzvf openresty-1.11.2.2.tar.gz 4、进入解压目录, cd openresty-1.11.

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

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

ICode9版权所有