1:编写for循环,利用索引遍历出每一个字符 msg='hello egon 666' msg = 'hello egon 666'j = len(msg)for i in range(0,j - 1): print( msg[i]) 2:编写while循环,利用索引遍历出每一个字符 msg='he ...
分类:
编程语言 时间:
2017-06-08 10:59:37
阅读次数:
153
记录下来备忘 1、准备好webstrom编辑器,编辑器调整字体大小等在file->settings->editor下设置 注册码 来源网上: 2017.2.27更新 选择“license server” 输入:http://idea.imsxm.com/ 2、准备好 mysql 因为我本机有安装xa ...
分类:
数据库 时间:
2017-06-07 15:48:13
阅读次数:
275
一、环境准备:HA架构至少需要一主一从1.1、主机规划: master端:192.168.56.11 slave端:192.168.56.12 1.2、安装redis环境两台机器分别安装redis3.2.8安装步骤如下: cd /usr/local/ wget http://download.red ...
分类:
其他好文 时间:
2017-06-07 12:44:32
阅读次数:
290
redhat7默认没有yum模板,需要自己创建[root@localhost ~]# mount /dev/cdrom /root/iso/(挂载镜像)mount: /dev/sr0 写保护,将以只读方式挂载简化客户端配置文件[root@localhost ~]# yum-config-manage ...
分类:
系统相关 时间:
2017-06-06 22:16:09
阅读次数:
303
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5383 Do you know reverse Polish notation (RPN)? It is a known notation in the area of ...
分类:
其他好文 时间:
2017-06-06 20:00:30
阅读次数:
230
信号量可以获取多次,可以用来保护一定数量的同种资源,信号量的典型用例是控制生产者和消费者之间共享的环形缓冲区 生产者,消费者实例中对同步的需求有两处: 1.生产者快于消费者,将会覆盖消费者还没有读取的数据; 2.生产者慢于消费者,将会读取到一些过期的数据; 两种解决方案: 1.首先使生产者填满缓冲区 ...
分类:
编程语言 时间:
2017-06-06 10:33:32
阅读次数:
130
问题描述和重现步骤: 今天安装完Ubuntu后准备安装openssh-server apt-get install openssh-server 结果发现下面的错误。 Media change: please insert the disc labeled 解决方案: 在/etc/apt/sourc ...
分类:
其他好文 时间:
2017-06-05 00:21:14
阅读次数:
293
安装过程中出现以下报错: 解决办法是将系统时区导入mysql数据库中: ...
分类:
其他好文 时间:
2017-06-04 21:10:46
阅读次数:
155
下面文档是今天早上翻译的,因为要上班,时间比较仓促,有些部分没有翻译,请见谅。 2017年06月01日儿童节 Apache Flink 社区正式发布了 1.3.0 版本。此版本经历了四个月的开发,共解决了680个issues。Apache Flink 1.3.0 是 1.x.y 版本线上的第四个主要 ...
分类:
Web程序 时间:
2017-06-04 18:45:35
阅读次数:
190
1、安装runner 2、注册runner sudo gitlab-ci-multi-runner register Running in system-mode. Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com ...
分类:
其他好文 时间:
2017-06-04 10:42:26
阅读次数:
194