交互器模式
开始--》cmd --> cd c:\ -->dir
cd = change directory
dir = 查看当前目录文件列表
cd .. 返回上一层目录
cd ../.. 返回上上一层目录
cd ../../.. 返回上上上一层目录
cd ../../../.. 返回上上上上一层目录
{2}.变量的命名规则
1. 要具有描述性
2. 变量名只能_,数字,字母组成,不可以是空格或特殊字符(#?<.,¥$*!~)
3. 不能以中文为变量名
4. 不能以数字开头
5常量 :不变的量 pie = 3.141592653....
{3}支持中文的第一张表就叫 GB2312
1980 gb2312 6700+
1995 gbk1.0 20000
2000 gb18030 27000
big5 台湾
unicode 万国码 支持所有国家和地区的编码
2**16 = 65535 = 存一个字符 统一占用2个字节
UTF-8 = unicode 的扩展集,可变长的字符编码集
Assic -->Gb2312 ->gbk1.0-->gb18030
Assic -->unicode -->utf-8 /utf-16
Python2.x == Assic 默认编码
(#!-*- coding:utf-8 -*- )
(#coding:utf-8)前面加#是伪编码这个是注释是让别人能够理解你所写的是什么
{4}表达式if ...else语句.写这个时候注意(:)
缩进 IndentationError: expected an indented block
^
IndentationError: unindent does not match any outer indentation level
SyntaxError: invalid syntax 语法错误
tab != 4个空格
缩进级别必须保持一致
表达式for 循环
break and continue
表达式while 循环
以上注意在写是时应该应该在英文模式下书写