入门练习打印一个椭圆效果如下
以下是Python代码实现:
print(" ***")
print(" * *")
print("* *")
print("* *")
print("* *")
print("* *")
print("* *")
print("* *")
print(" * *")
print(" ***")
输出结果:
***
* *
* *
* *
* *
* *
* *
* *
* *
***
原文地址: https://www.cveoy.top/t/topic/cpu8 著作权归作者所有。请勿转载和采集!