当前位置:网站首页>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 边栏推荐
- ffmpeg获取首帧
- Zhaoqi scientific innovation and entrepreneurship competition platform, activity roadshow, investment and financing docking
- Remember the common JS methods of projects
- js中的for循环总结
- 2021 肯特面试题2
- 软件问题修复跟踪系统实战开发教程(上篇)
- 软考 系统架构设计师 简明教程 | 软件调试
- 两种特殊函数(箭头函数和方法)
- R language ggplot2 visually draws line plots, and uses gghighlight package to highlight the lines that meet the combination judgment conditions in the line graphs (satisfies both condition a and b)
- Encoder high speed pulse counter Modbus RTU module ibf150
猜你喜欢
随机推荐
JS linked list 01
Writing of factorial
电压频率的变换原理
[channel attention mechanism] senet
2021-10-21 notes
电压转电流/电流转电压模块
Multipurpose mixed signal 8ai/4di/do to serial port rs485/232modbus acquisition module ibf30
为什么学编程的人大多数都去了深圳和北京?
分体式测斜探头安装要点及注意事项
我在上海偶遇数字凤凰#坐标徐汇美罗城
跳表的实现
远距离串口服务器( 适配器)UART/I2C/1-Wire/SPI PS304常见问题及注意事项
12V pulse speed measurement to 24V level signal conversion transmitter
兆骑科创创新创业大赛人才引进平台,双创赛事高层次人才引进
2021 亚鸿笔试题2
Shell programming specifications and variables
js 数组(总结)
2021 肯特面试题3
Duty cycle switch output high speed pulse counter rtumodbus module ibf63
Is MySQL query limit 1000,10 as fast as limit 10? If I want to page, what should I do?









