当前位置:网站首页>【每周一坑】输出三角形
【每周一坑】输出三角形
2022-07-06 12:23:00 【Crossin的编程教室】
零基础python入门教程:python666.cn
大家好,欢迎来到 Crossin的编程教室 !
我们的“每周一坑”栏目又来啦!
好久不见,我们今天先用一个简单题目来热热身吧:
在控制台输出如下图形(不考虑颜色):
* * * * *
* *
* *
* *
*
如果输出固定长度对你来说太简单了,可以增加一个输入 n(n为正整数且 n>3),作为输出三角形第一行星号的数量。
比如输入 7,则输出:
* * * * * * *
* *
* *
* *
* *
* *
*
详细解答和参考代码将在下期栏目中给出,也可以参考其他同学在留言中的代码。
期待各位同学提交解答,更期待你能完成整个系列。
简单代码可直接在留言中提交,较长代码推荐使用 paste.ubuntu.com 或
codeshare.io 等代码分享网站,只需将代码复制上去保存,即可获得一个分享地址,非常方便。
往期问题可点击文章开头的合集“每周一坑”进入查看。
_往期文章推荐_
如需了解付费精品课程及教学答疑服务
请在Crossin的编程教室内回复: 666
边栏推荐
- Linear distance between two points of cesium
- Anaconda安装后Jupyter launch 没反应&网页打开运行没执行
- Unity makes AB package
- JVM_ Common [interview questions]
- Poj3617 best cow line
- Jupyter launch didn't respond after Anaconda was installed & the web page was opened and ran without execution
- HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
- POJ1149 PIGS 【最大流量】
- 02 基础入门-数据包拓展
- Learn to punch in Web
猜你喜欢
深度学习分类网络 -- ZFNet
Number of schemes from the upper left corner to the lower right corner of the chessboard (2)
PowerPivot - DAX (first time)
腾讯字节阿里小米京东大厂Offer拿到手软,老师讲的真棒
某东短信登录复活 安装部署教程
BeagleBoneBlack 上手记
Ideas and methods of system and application monitoring
腾讯T4架构师,android面试基础
Configuration and simple usage of the EXE backdoor generation tool quasar
New generation garbage collector ZGC
随机推荐
22-07-05 七牛云存储图片、用户头像上传
5. Nano - Net in wireless body: Top 10 "is it possible?" Questions
5. 無線體內納米網:十大“可行嗎?”問題
深度学习分类网络 -- ZFNet
PHP and excel phpexcel
腾讯架构师首发,2022Android面试笔试总结
腾讯字节等大厂面试真题汇总,网易架构师深入讲解Android开发
JVM_常见【面试题】
Linear distance between two points of cesium
logstash高速入口
Database specific interpretation of paradigm
Web开发小妙招:巧用ThreadLocal规避层层传值
mod_wsgi + pymssql通路SQL Server座
mod_ WSGI + pymssql path SQL server seat
Speech recognition (ASR) paper selection: talcs: an open source Mandarin English code switching corps and a speech
Initial experience of addresssanitizer Technology
范式的数据库具体解释
Special topic of rotor position estimation of permanent magnet synchronous motor -- fundamental wave model and rotor position angle
POJ3617 Best Cow Line 馋
Groovy基础语法整理