发表于 2018-8-25 10:30:15

用shell或者python写出各种图形

for ((i = 1; i < 12; i++))  
do
  
   if [[ $i -le 6 ]]; then
  
         for ((j = $((12-i)); j > i; j--))
  
         do
  
             echo -n &quot; &quot;;
  
         done
  
         for ((m = 1; mn; j--))
  
         do
  
             echo -n &quot; &quot;;
  
         done
  
         for ((m = 1; m
页: [1]
查看完整版本: 用shell或者python写出各种图形