当前位置:网站首页>【每周一坑】输出三角形
【每周一坑】输出三角形
2022-07-06 12:23:00 【Crossin的编程教室】
零基础python入门教程:python666.cn
大家好,欢迎来到 Crossin的编程教室 !
我们的“每周一坑”栏目又来啦!
好久不见,我们今天先用一个简单题目来热热身吧:
在控制台输出如下图形(不考虑颜色):
* * * * *
* *
* *
* *
*如果输出固定长度对你来说太简单了,可以增加一个输入 n(n为正整数且 n>3),作为输出三角形第一行星号的数量。
比如输入 7,则输出:
* * * * * * *
* *
* *
* *
* *
* *
*详细解答和参考代码将在下期栏目中给出,也可以参考其他同学在留言中的代码。
期待各位同学提交解答,更期待你能完成整个系列。
简单代码可直接在留言中提交,较长代码推荐使用 paste.ubuntu.com 或
codeshare.io 等代码分享网站,只需将代码复制上去保存,即可获得一个分享地址,非常方便。
往期问题可点击文章开头的合集“每周一坑”进入查看。
_往期文章推荐_
如需了解付费精品课程及教学答疑服务
请在Crossin的编程教室内回复: 666

边栏推荐
- String length limit?
- Maximum likelihood estimation and cross entropy loss
- String长度限制?
- 转让malloc()该功能后,发生了什么事内核?附malloc()和free()实现源
- 微信小程序常用集合
- SSH connection denied
- [Yann Lecun likes the red stone neural network made by minecraft]
- Number of schemes from the upper left corner to the lower right corner of the chessboard (2)
- A5000 vgpu display mode switching
- 腾讯架构师首发,2022Android面试笔试总结
猜你喜欢

Oceanbase Community Edition OBD mode deployment mode stand-alone installation

Deep learning classification network -- zfnet

棋盘左上角到右下角方案数(2)

HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother

Social recruitment interview experience, 2022 latest Android high-frequency selected interview questions sharing

rt-thread i2c 使用教程
![[network planning] Chapter 3 data link layer (4) LAN, Ethernet, WLAN, VLAN](/img/b8/3d48e185bb6eafcdd49889f0a90657.png)
[network planning] Chapter 3 data link layer (4) LAN, Ethernet, WLAN, VLAN

数字三角形模型 AcWing 1018. 最低通行费

Redisson bug analysis

深度学习分类网络 -- ZFNet
随机推荐
beegfs高可用模式探讨
转让malloc()该功能后,发生了什么事内核?附malloc()和free()实现源
22-07-05 七牛云存储图片、用户头像上传
5. 无线体内纳米网:十大“可行吗?”问题
mod_ WSGI + pymssql path SQL server seat
Qinglong panel white screen one key repair
Jupyter launch didn't respond after Anaconda was installed & the web page was opened and ran without execution
Notes on beagleboneblack
Example of shutter text component
Tencent byte Alibaba Xiaomi jd.com offer got a soft hand, and the teacher said it was great
Period compression filter
Crawler (14) - scrape redis distributed crawler (1) | detailed explanation
Logstash expressway entrance
爬虫(14) - Scrapy-Redis分布式爬虫(1) | 详解
JVM_常见【面试题】
An East SMS login resurrection installation and deployment tutorial
String长度限制?
Configuration and simple usage of the EXE backdoor generation tool quasar
【云小课】EI第47课 MRS离线数据分析-通过Flink作业处理OBS数据
持续测试(CT)实战经验分享