当前位置:网站首页>测试用里hi
测试用里hi
2022-07-06 11:34:00 【赛男丨木子丿小喵】
比努力更重要的是思维方式的改变,思维转个弯,人生大不同。写代码也是如此,看似一点点变化,其实体现的却是思维的大跨越。先来看两端代码:
版本一
版本二
Private Sub Form_Load()
Dim a As Integer, b As Integer
a = 5
b = 6
Print a + b
End Sub两端代码输出的结果都是11,但是区别是什么?
直观上我们可以看到引入了两个变量,但其实这这是表象,通过表象看实质,变量是什么?变量数学里指值可以变的量,在计算机中指能存储计算结果或能表示值的抽象概念。看到“抽象”两个字,其实我们的维度就要上升一个层级了,也就是版本二已不是版本一中有限的思维,把固定的两个数相加变成了任意两个数相加,因为赋予a和b的值是可改变的。既然实现了任意两个数相加,也可以实现任意个数相加。
固定到可变,体现的是有限到无限的变化,思维和眼界决定格局,也决定写出来的代码是不是有创
边栏推荐
- The dplyr package of R language performs data grouping aggregation statistical transformations and calculates the grouping mean of dataframe data
- 三面蚂蚁金服成功拿到offer,Android开发社招面试经验
- In 50W, what have I done right?
- 10 schemes to ensure interface data security
- PMP practice once a day | don't get lost in the exam -7.6
- Php+redis realizes the function of canceling orders over time
- 五金机电行业智能供应链管理系统解决方案:数智化供应链为传统产业“造新血”
- RT-Thread 组件 FinSH 使用时遇到的问题
- 【翻译】供应链安全项目in-toto移至CNCF孵化器
- Low CPU load and high loadavg processing method
猜你喜欢

How to do smoke test

Digital "new" operation and maintenance of energy industry

Dark horse -- redis

JDBC details

中缀表达式转后缀表达式详细思路及代码实现

倒计时2天|腾讯云消息队列数据接入平台(Data Import Platform)直播预告

Computer network: sorting out common network interview questions (I)

zabbix 代理服务器 与 zabbix-snmp 监控

第五期个人能力认证考核通过名单公布

LeetCode-1279. 红绿灯路口
随机推荐
DaGAN论文解读
How to access localhost:8000 by mobile phone
Elastic search indexes are often deleted [closed] - elastic search indexes gets deleted frequently [closed]
IC设计流程中需要使用到的文件
快速幂模板求逆元,逆元的作用以及例题【第20届上海大学程序设计联赛夏季赛】排列计数
学习探索-函数防抖
Carte de réflexion + code source + notes + projet, saut d'octets + jd + 360 + tri des questions d'entrevue Netease
map的使用(列表的数据赋值到表单,json逗号隔开显示赋值)
Documents to be used in IC design process
Live broadcast today | the 2022 Hongji ecological partnership conference of "Renji collaboration has come" is ready to go
数学知识——高斯消元(初等行变换解方程组)代码实现
Druid database connection pool details
Tongyu Xincai rushes to Shenzhen Stock Exchange: the annual revenue is 947million Zhang Chi and Su Shiguo are the actual controllers
包装行业商业供应链管理平台解决方案:布局智慧供应体系,数字化整合包装行业供应链
MRO industrial products enterprise procurement system: how to refine procurement collaborative management? Industrial products enterprises that want to upgrade must see!
主从搭建报错:The slave I/O thread stops because master and slave have equal MySQL serv
Is not a drawable (color or path): the vector graph downloaded externally cannot be called when it is put into mipmap, and the calling error program crashes
Simple understanding of MySQL database
swagger2报错Illegal DefaultValue null for parameter type integer
R language uses the order function to sort the dataframe data, and descending sorting based on a single field (variable)