本文摘自php中文网,作者尚,侵删。

Python中倒三角可以使用for循环来实现:
1 2 3 4 5 | for i in range(6):
print ( "" )
for j in range(0,6-i):
print ( "*" , end = " " )
print ( "\n" )
|

更多Python相关技术文章,请访问Python教程栏目进行学习!
以上就是python中怎么实现倒三角的打印的详细内容,更多文章请关注木庄网络博客!!
相关阅读 >>
Python idle是什么
大学有Python课吗
适合大学生读的Python书
Python中关于正则表达式非贪婪以及多行匹配功能详解
Python中的seed()方法怎么用
初学Python用什么编译器
Python的2d绘图库matplotlib的安装方法及功能介绍
Python中type()是什么意思
Python如何提取pdf文本
怎么在windows下安装pip
更多相关阅读请进入《Python》频道 >>
人民邮电出版社
python入门书籍,非常畅销,超高好评,python官方公认好书。
转载请注明出处:木庄网络博客 » python中怎么实现倒三角的打印