隨機點名手冊

2021-10-23 20:48:29 字數 831 閱讀 9432

#!/bin/bash

## 隨機點名手冊

while true

doecho

-e "\n學生隨機點名系統"

echo

"1、新增學員名單"

echo

"2、遍歷學院名單"

echo

"3、隨機點名"

echo

"4、刪除某個學院資訊"

echo

"5、退出系統"

read -p "請輸入你要選擇的序號" num

n=(`cat name.txt`)

l=`cat name.txt |wc -l`

case $num in

1) read -p "請輸入學新增員名單" name

echo

$name >>/root/name.txt ;;

2)for i in $

doecho

$i done ;;

3)

shu=$(expr $random%$l

) m=$

echo$m;

; 4)

read -p "請輸入刪除學員的資訊" delt

echo

''>/root/name.txt

for i in $

doif

[$delt

!= $i

];then

echo

$i >> /root/name.txt

fidone

;; 5)exit 0 ;;

esac

done

隨機點名器

1.doctype html html lang en head meta charset utf 8 title 隨機點名器 title link rel icon href style box,zhu box div,button astyle head body div class box d...

js隨機點名器

今天翻到以前乙個js隨機點名效果,當時也是頭疼了幾天才做出來的,有些繁瑣,不過希望可以幫到你 github位址 瀏覽位址點名器.html 不要像我一樣html起中文名字 如下 main.js 獲取按鈕 點名和重置 var btn document.queryselector btn button 獲...

隨機點名系統

lang en charset utf 8 name viewport content width device width,initial scale 1.0 隨機點名系統title body th tab1 tab0 tab2 input style head tab0 width 1000 a...