标签:inf com 脚本 图片 width alt shell脚本 ++ nbsp
#!/bin/bash for ((i=1;i<=9;i++)) do for ((j=9;j>=i;j--)) do echo -n " " done for ((j=2;j<=i;j++)) do echo -n "*" done for ((j=1;j<=i;j++)) do echo -n "*" done for ((j=9;j>=i;j--)) do echo -n "*" done for ((j=9;j>=i;j--)) do echo -n "*" done echo done
#! /bin/bash for ((i=1;i<=9;i++)) do for ((j=9;j>=i;j--)) do echo -n " " done for ((j=2;j<=i;j++)) do echo -n "*" done for ((j=1;j<=i;j++)) do echo -n "*" done echo done for ((i=1;i<=9;i++)) do for ((j=1;j<=i;j++)) do echo -n " " done for ((j=8;j>=i;j--)) do echo -n "*" done for ((j=9;j>=i;j--)) do echo -n "*" done echo done
标签:inf com 脚本 图片 width alt shell脚本 ++ nbsp
原文地址:https://www.cnblogs.com/tanxiaojuncom/p/11432152.html