Ai
1 Star 0 Fork 0

ZONEZS_Python/Python3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
demo01.py 193 Bytes
一键复制 编辑 原始数据 按行查看 历史
zonezs 提交于 2019-01-04 08:49 +08:00 . feat the chermis
# 变量
height = 15
# 定义树
def design_tree():
for i in range(height):
print((' ' * (height - i)) + ('*' * ((2 * i) + 1)))
print((' ' * height) + '|')
design_tree()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/ZONEZS-Python/Python3.git
git@gitee.com:ZONEZS-Python/Python3.git
ZONEZS-Python
Python3
Python3
master

搜索帮助