Python 自学监督项目
Day 1 python basis
In this blog, I will try to document my daily progress as much as possible. Trying to use English for the interpreting purpose. If I could not express myself properly, after devastating Chinglish trials, I would definitely 说中文!
计算机的组成 Compositions of the computer
The purpose of this section is to learn CPU and RAM.
RAM: random access memory. 内存
ROM: Read only memory. 外存
CPU can only deal with the data in RAM. The data in RAM can be easily manipulated while the data in ROM can not. The data usually is stored in the ROM and could be fetched out to the RAM when the CPU needs. The write and read speed is pretty slow in ROM compared to RAM.
Case 1: My computer is freezed, what should I do?
Reboot.
The reason is that the RAM is full and the CPU could not process new data or whatever. Since the data stored in the RAM is only effective when the voltage is on. Turn off and turn back would clear the RAM and give new space to the it.
解释器和编译器 Interpreter and Compiler
Includes:
Cpython
Ipython
PyPy
Jython
IronPython
etc…
The interpreter is a program that could convert our python code to machine code which CPU could understand (usually 1 and 0).
Q1.解释和编译的区别是什么?
编译是生成cpu可执行的文件,内容是机器语言。
解释是一边生成机器语言,一边交给CPU执行,逐句向后,直至完成。
集成开发环境 pycharm 和 Atom
The teacher is asking us to use Pycharm, but I would like to continue my study on Atom. I prefer Atom cause I have used it for several times. 希望不要真香。。