
输出菱形图案Python
n = int(input("请输入行数:")) for i in range(1, n+1): print(('* ' *(i)).center(n*3)) for j in range(n, 0, -1): print(('* '*(j)).center(n*3))
👁️ 阅读量:0
© 版权声明:本文《输出菱形图案Python》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1687044261a420031.html。