1.首先我们学习了什么是编程,在学习正片以前需要大家学习基础
什么是编程语言
1.什么是语言:中文,英语,日语,语言是拿来沟通的
2.编程语言:和计算机交流的狱中戒指
什么是编程
表达自己的想法(实现一些东西)
编程:通过编程语言做一些事情
为什么要编程
编程的目的:替代劳动力,然后才帮人来完成一些具体的事情
2.然后老师带我们了解了
计算机的组成
也就是拿电脑和人类进行对比CPU(大脑)
电脑创立初:控制器和运算器是分开的
控制器(控制)
控制硬件(运算器,存储器,输入设备,输出设备)
运算器(运算)
算术运算(1+1=2)+逻辑运算(今天下雨我就带伞)
存储器(记忆)
主存(脑子)
优点:运算速度快 内存越大可运行的程序就越多
缺点:容量小,断电即消失
外存(记笔记)
机械硬盘--》128GB固态硬盘 这个也最好换一下
优点:容量大,永久存储
缺点:速度慢
I/O设备(Input/Output设备)
输入设备(眼睛)
输入信息,键盘/鼠标/麦克风/U盘
输出设备(决策)
输出信息,显示屏/打印机/U盘
这些是要默写的
并对我们的计算机组成进行了补充
讲了CPU、32位电脑和64位电脑的区别、机械硬盘的组成原理还有固态硬盘相较于机械硬盘的优势
短暂的休息之后,我们开始了解操作系统
什么是文件
存储信息的介质,操作系统提供给你的一个虚拟的概念,这个虚拟的概念可以用来存储信息,帮你滑动了机械手臂
文件接口(操作系统提供的,而文件只是其中的一个接口):帮你把对硬件的复杂操作简单化
双击接口(操作系统提供的):让你快速打开一个应用程序
操作系统有什么用
它可以提供给我们一个一个接口,让我们不再关心硬件的复杂操作,让复杂操作简单化
应用程序的启动由三部分组成
1.双击qq--》让操作系统通知CPU(企鹅图标是操作系统提供给你的)(找到qq在硬盘的位置)
2.CPU让内存去外存读取qq的数据,qq数据进入内存
3.启动qq
计算机的组成(有了操作系统之后)
1.应用程序(软件):和操作系统交互
2.操作系统(软件):和硬件交互
3.硬件:硬件直接交互
操作系统的启动(开机)
启动软件,首先启动操作系统找软件在硬盘上的位置;操作系统本质也是一个软件,启动操作系统也必须找到操作系统在硬盘中的位置(要找到就必须通过操作系统)
临时操作系统(ROM存储器)
计算机出厂的时候就写死了,他会去CMOS存储器上调用操作系统的路径,只负责寻找操作系统的路径
临时内存(CMOS存储器)
用电池供电,存储了操作系统的路径(重装操作系统修改启动盘的位置,改的就是这个),存储了时间
1.开机,启动临时操作系统
2.临时操作系统去CMOS存储器上找到操作系统的路径
3.启动操作系统,临时操作系统关闭
wdnmd 这也是要默写的
编程语言分类
机械语言就是只有010101的语言
当时只有顶级的科学家才能使用,因此没有很高的普及度
而编绘语言则是利用设备输入010101并转化成高低电频开发效率虽然比机械语言高了,但是电脑的执行速度缺慢了下来
时过境迁,渐渐的出现了高级语言,高级语言被分为两类,一类是编译型语言,一类是解释型语言
编译型语言是直接将一整段语言进行翻译,可是找bug缺成了难事
而解释型语言是将语言一段一段得翻译,因此它的开发效率就比编译型高了,但执行效率就慢了下来
网络瓶颈效应
马上就要去吃饭了,老师任然在兴冲冲得讲着课,我们也在认真听着
现在他讲的是关于网络瓶颈的问题,鲁迅曾提出过木桶效应(玩梗,我知道他没说过)
讲的是一个木桶能装多少水取决于木桶上最短的那根木头,因为
网络通信的时间(10ms)远远大于执行程序的时间(0.01ms)--》程序的执行效率完全没必要考虑了--》(网络的应用程序)解释型语言--》python
操作系统-(单机操作的应用程序)--》编译型语言
这就是上午我们学到的内容,真期待下午能学到的新知识呢