摘要: 判断/etc/inittab文件是否大于100行; shell编写99乘法表; shell计算100以内偶数的和 阅读全文
posted @ 2019-08-14 21:03 ‘嗯哼’ 阅读(1913) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#100以内假发declare -i i=0declare -i sum=0while [ $i -le 100 ];do sum+=$i let i=i+1doneecho $sum 阅读全文
posted @ 2019-08-13 17:07 ‘嗯哼’ 阅读(276) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#添加用户 if id $* &> /dev/null;then echo "这个用户不存在"else for i in $*;do useradd test$* echo "123456" | passwd --stdin "$*" &> /dev/null echo "用户 阅读全文
posted @ 2019-08-13 11:25 ‘嗯哼’ 阅读(343) 评论(0) 推荐(0) 编辑
摘要: ##注册验证用户 def users(): users_ = input('users: ') k1 = 'qwertyuiopasdfghjklzxcvbnm' k2 = '1234567890' k3 = '!@#$%^&*()_+' is_k1 = False is_k2 = False is 阅读全文
posted @ 2019-08-01 14:01 ‘嗯哼’ 阅读(162) 评论(0) 推荐(1) 编辑