当前位置:网站首页>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 边栏推荐
- R语言ggplot2可视化绘制线图(line plot)、使用gghighlight包突出高亮线图中满足组合判断条件的线图(satisfies both condition A and B)
- Why do most people who learn programming go to Shenzhen and Beijing?
- Solve the problem that the right-click menu "edit with idle" of the 『 py 』 file is invalid or missing
- 2021 Kent interview question 3
- MLX90640 红外热成像仪测温传感器模块开发笔记(八)
- Advantages of optical rain gauge over tipping bucket rain gauge
- Laser rangefinder non-contact surface crack monitor
- 深部位移监测系统wk813应用边坡、大坝、堤防、铁路和建筑基坑开挖等深部位移测量
- Common problems and precautions of remote serial port server (adapter) uart/i2c/1-wire/spi PS304
- 远距离串口服务器( 适配器)UART/I2C/1-Wire/SPI PS304常见问题及注意事项
猜你喜欢

【Multisim仿真】LM339过零电路仿真

NTC, PT100 thermal resistance to 4-20mA temperature signal converter

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

Instructions for mictr01 Tester development kit (vibrating wire acquisition reader)

JS priority queue

How to effectively conduct the review meeting (Part 1)?

带你来浅聊一下!单商户功能模块汇总

Rust 入门指南(crate 管理)

Have you seen the management area decoupling architecture? Can help customers solve big problems

正大杯黑客马拉松数据解析竞赛
随机推荐
Ask if you don't understand, and quickly become an advanced player of container service!
2021-10-21 notes
Knowledge points qwer
Fifth uncle's thinking
远距离串口服务器( 适配器)UART/I2C/1-Wire/SPI PS304常见问题及注意事项
Play dead prototype chain
电压频率的变换原理
带你来浅聊一下!单商户功能模块汇总
Connection and application of portable borehole inclinometer data acquisition instrument and inclinometer probe
mysql查询 limit 1000,10 和limit 10 速度一样快吗?如果我要分页,我该怎么办?
js 链表 01
2021 Kent interview question 3
JS linked list 02
Note: numerical accumulation animation
记录一下 clearfix 清除浮动
我在上海偶遇数字凤凰#坐标徐汇美罗城
2021 肯特面试题1
记项目 常用js方法
动态规划 --- 数位统计DP
Shell编程规范与变量