- 博客(19)
- 收藏
- 关注
原创 [python] say hi
写一个函数来介绍一个具有给定参数的人的属性。输入:两个参数。字符串和正整数。输出:字符串。例:say_hi (“Alex” ,32 )== “嗨,我叫Alex,我32岁” say_hi (“Frank” ,68 )== “嗨,我叫弗兰克,我68岁了” 我的代码# 1. on CheckiO your solution should be a function# 2. the functio...
2018-02-24 11:08:36
1099
原创 [pyehon] 非独特元素
网址:https://py.checkio.org/mission/non-unique-elements/给你一个非空的整数列表(X)。对于这个任务,你应该返回一个只包含这个列表中的非唯一元素的列表。为此,您需要删除所有唯一元素(仅包含在给定列表中的元素一次)。解决此任务时,请勿更改列表的顺序。例如:[1,2,3,1,3] 1和3个非唯一元素,结果将为[1,3,1,3]。我的代码:#Your o...
2018-02-23 15:06:04
464
原创 [python] 判断字符串中出现次数最多的字母
网址:https://py.checkio.org/mission/most-wanted-letter/我的代码:import stringdef checkio(text): text = text.lower() if 0 < len(text) and len(text) <=10**5: return max(strin...
2018-02-23 14:57:28
4519
原创 python 学习案例
1.远程关闭计算机http://blog.youkuaiyun.com/zhjmozhi/article/details/782966502.判断密码是否符合要求http://blog.youkuaiyun.com/zhjmozhi/article/details/793466523.判断文本中出现次数最多的字母http://blog.youkuaiyun.com/zhjmozhi/article/details/793536284...
2018-02-22 13:02:09
419
原创 [python] 判断密码强度
网站记录:https://py.checkio.org/mission/house-password/solve/问题:判读输入的密码是否符合要求:超过10位,英文加数字,大小写,没有特殊符号我的代码:import redef checklen(data): return len(data) >= 10def checkUpper(data): upper = re....
2018-02-22 12:57:09
14266
原创 centos7 安装rlwrap
[root@orcl1 ~]# rpm -ivh rlwrap-0.42-1.el7.x86_64.rpm warning: rlwrap-0.42-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEYerror: Failed dependencies: perl >= 0:5.006 is nee
2017-10-25 21:52:04
4959
原创 第一个python脚本
仅以此篇记录我的python学习之路首先安装python环境 https://www.python.org/downloads/查看python版本 python -v重要的事情说三遍: 注意python格式的缩进! 注意python格式的缩进! 注意python格式的缩进!实验目的:远程关闭同一网段linux系统,(这里用户名和密码一致,使用的环境python3.6)先安装python扩
2017-10-20 16:12:32
585
原创 使用Vbox 搭建centos7 11.2.0.4 RAC
虚拟机:VBOX 系统:Centos7 数据库:11.2.0.4实验规划 服务器主机名 rac1 rac2 公共IP地址(第一个网卡)(可以用xshell连接的ip地址) 192.168.31.205 192.168.31.207 虚拟IP地址(与第一个网卡IP地址网段一样,只需在hosts文件中配置解析) 192.168.31.206 192.168.31.2
2017-10-13 18:28:44
1991
原创 ORA-00845,momery_target not supported on this system
出现ORA-00845报错时我们首先用oerr工具查询[oracle@orcl1 admin]$ oerr ora 0084500845, 00000, "MEMORY_TARGET not supported on this system"// *Cause: The MEMORY_TARGET parameter was not supported on this operating sys
2017-10-11 12:01:52
271
原创 重建smon_scn_time表和索引
参考文章:http://www.cndba.cn/dave/article/1975;http://www.cndba.cn/dave/article/1285smon_scan_time表介绍:scn和时间的对应关系表,由smon进程维护 scn:系统改变数字,保证数据一致性一、创建SMON_SCN_TIME表先对SMON_SCN_TIME进行查询,和表中的记录内同SQL> desc smon_
2017-10-11 11:30:56
623
原创 vbox启动提示 intel_rapl: no valid rapl domains found in package 0
centos7安装玩11.2.0.4之后虚拟机启动报错
2017-09-20 23:09:37
3361
原创 centos7 安装11.2.04 报错解决
centos7 安装11.2.04 报错解决Error in invoking target 'agent nmhs' of makefile
2017-09-19 12:57:00
1099
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人