当前位置:网站首页>测试用里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的值是可改变的。既然实现了任意两个数相加,也可以实现任意个数相加。
固定到可变,体现的是有限到无限的变化,思维和眼界决定格局,也决定写出来的代码是不是有创
边栏推荐
- 驼峰式与下划线命名规则(Camel case With hungarian notation)
- Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
- 深入分析,Android面试真题解析火爆全网
- Intelligent supply chain management system solution for hardware and electromechanical industry: digital intelligent supply chain "creates new blood" for traditional industries
- Swagger2 reports an error illegal DefaultValue null for parameter type integer
- ROS自定义消息发布订阅示例
- English topic assignment (25)
- 黑馬--Redis篇
- map的使用(列表的数据赋值到表单,json逗号隔开显示赋值)
- R语言ggplot2可视化:使用ggpubr包的ggviolin函数可视化小提琴图
猜你喜欢
[translation] a GPU approach to particle physics
黑馬--Redis篇
史上超级详细,想找工作的你还不看这份资料就晚了
How word displays modification traces
JDBC详解
Take a look at how cabloyjs workflow engine implements activiti boundary events
Low CPU load and high loadavg processing method
Mysql Information Schema 学习(一)--通用表
Cereals Mall - Distributed Advanced p129~p339 (end)
思维导图+源代码+笔记+项目,字节跳动+京东+360+网易面试题整理
随机推荐
第五期个人能力认证考核通过名单公布
Leetcode topic [array] - 119 Yang Hui triangle II
【pytorch】yolov5 训练自己的数据集
Help improve the professional quality of safety talents | the first stage of personal ability certification and assessment has been successfully completed!
通俗的讲解,带你入门协程
R language uses DT function to generate t-distribution density function data and plot function to visualize t-distribution density function data
保证接口数据安全的10种方案
Tongyu Xincai rushes to Shenzhen Stock Exchange: the annual revenue is 947million Zhang Chi and Su Shiguo are the actual controllers
short i =1; i=i+1与short i=1; i+=1的区别
First day of rhcsa study
Looting iii[post sequence traversal and backtracking + dynamic planning]
Spark foundation -scala
终于可以一行代码也不用改了!ShardingSphere 原生驱动问世
Simple understanding of MySQL database
short i =1; I=i+1 and short i=1; Difference of i+=1
LeetCode_双指针_中等_61. 旋转链表
Meilu biological IPO was terminated: the annual revenue was 385million, and Chen Lin was the actual controller
【翻译】数字内幕。KubeCon + CloudNativeCon在2022年欧洲的选择过程
ZABBIX proxy server and ZABBIX SNMP monitoring
C language daily practice - day 22: Zero foundation learning dynamic planning