Hardware Overview
作为programmer,我们是写一些程序在main memory里,作为指令告诉CPU what next,CPU帮我们执行。
Reserved Words
words that reserved for Python 去识别
Statements or Lines
一行代码叫做 a line
Interactive vs Script
Interactive 输入了就立刻执行
Script 通过text editor,写了一系列代码在文件里,然后再执行
Program Steps or Flow
Sequencial Steps 按顺序执行
Conditional Steps 满足给定的条件才执行
Repeated Steps 在一定条件下重复执行
cmd命令
win+r 输入cmd 进入command
键入:
python 在cmd中运行python
ctrl+z 退出刚才进入的
dir 显示这个地点有哪些文件
cd+文件地点 进入文件
python+文件名.py 运行py文件
文件名.py 运行py文件(仅适用win)