当前位置:网站首页>Notes on October 22, 2021
Notes on October 22, 2021
2022-07-28 16:15:00 【Siege lion Yimu】
Top, top, top
Today I learned the organization document , Generally speaking, many things are incomprehensible ,Path Many times, I still don't know how to use it , The final project is even more ambiguous , No matter how difficult it is, we must insist on , Even if you can't understand it, you have to learn , Wait for the first time , Maybe it will be better when I watch it again . come on. , Continue to adhere to !
Today, I also studied the writing method of Yang Hui's triangle , Baidu looks for information , Although write it out , But the feeling is still GET Not to that point ! Adhere to the youth !! The following is the code I wrote , only
Record the use of :
print(' Please enter the value to be calculated ')
n = int(input())
a = [[0]*n for i in range(n)]
for i in range(n):
for b in range(n):
if b == 0:
a[i][b] = 1
else:
a[i][b] = a[i-1][b-1] + a[i-1][b]
if a[i][b] != 0:
print(a[i][b],end = ' ')
print('\n')
Please enter the value to be calculated
9
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
1 7 21 35 35 21 7 1
1 8 28 56 70 56 28 8 1 边栏推荐
- 1路编码器2路DI转速测量RS485串口连接1路DO报警模块IBF151
- 小程序中的分页查询
- Redis系列4:高可用之Sentinel(哨兵模式)
- Love programming
- R语言ggplot2可视化绘制线图(line plot)、使用gghighlight包突出高亮线图中满足组合判断条件的线图(satisfies both condition A and B)
- 不懂就问,快速成为容器服务进阶玩家!
- LabVIEW Linx toolkit controls Arduino equipment (expansion-1)
- Why do most people who learn programming go to Shenzhen and Beijing?
- JS linked list 01
- 2021 肯特面试题3
猜你喜欢

Set static IP in NAT mode of virtual machine

MLX90640 红外热成像仪测温传感器模块开发笔记(八)

How to quickly access the unified authentication system

我在上海偶遇数字凤凰#坐标徐汇美罗城

js 栈

不懂就问,快速成为容器服务进阶玩家!
What are the process specifications of software testing? How to do it?

光学雨量计对比翻斗式雨量计的优势

Is MySQL query limit 1000,10 as fast as limit 10? If I want to page, what should I do?

Rust Getting Started Guide (crite Management)
随机推荐
记项目 常用js方法
Pyqt5 rapid development and practice 5.2 container: load more controls
Zhengda cup hacker marathon data analysis competition
LabVIEW LINX Toolkit控制Arduino设备(拓展篇—1)
2路DI高速脉冲计数器1路编码器转Modbus TCP有线无线模块IBF161
太阳能路灯的根本结构及作业原理
多用型混合信号8AI/4DI/DO转串口RS485/232MODBUS采集模块IBF30
Event express | Apache Doris Performance Optimization Practice Series live broadcast course is open at the beginning. You are cordially invited to participate!
光学雨量计应用降雨量检测
js中的for循环总结
[channel attention mechanism] senet
Transformation principle of voltage and frequency
食品安全 | 这两类瓜果宜改善便秘 孕妇人群尤其建议
便携式钻孔测斜仪数据采集仪测量原理与测斜探头的连接及使用方法
Have you seen the management area decoupling architecture? Can help customers solve big problems
电压频率的变换原理
Zhaoqi scientific innovation and entrepreneurship competition platform, activity roadshow, investment and financing docking
Summary of for loop in JS
IFD-x 微型红外成像仪(模块)的温度测量和成像精度
ffmpeg获取首帧