摘要: 说明: seq -w 1 10 # 产生01,...10等10位数字 cat /dev/urandom | head -1 | md5sum | head -c 3 # 产生3位随机字母或数字 useradd user # 添加用户命令 echo "$user$password" | passwd 阅读全文
posted @ 2019-09-26 01:57 OpsDrip 阅读(1376) 评论(0) 推荐(0) 编辑
摘要: 一、用Python语言把列表[1,3,5,7,9]倒序并将元素变为字符类型,请写出多种方法: 第一种方法: 第二种方法: 二、Python实现,给定一个字符串,找到字符串中第一个重复的字符。如输入“Hello Duoyi”,输出“l” 阅读全文
posted @ 2019-09-26 00:16 OpsDrip 阅读(743) 评论(0) 推荐(0) 编辑