标签:sleep and one 蓝球 end 一个 双色球 done for
#!/bin/bash
###红球###
RED=‘\033[31m‘
BLUE=‘\033[34m‘
END=‘\033[0m‘
sleep 2
echo -ne "$RED 红球: $END"
for i in $(seq 6)
do
echo -n " $[$RANDOM%33+1]"
done
echo
###蓝球####
echo -ne "$BLUE 蓝球: $END"
for i in $(seq 1)
do
echo -n " $[$RANDOM%16+1]"
done
sleep 2
echo
标签:sleep and one 蓝球 end 一个 双色球 done for
原文地址:https://www.cnblogs.com/zc1741845455/p/10888814.html