函数式编程

  • λ演算
  • LISP,Erlang
  • 尾递归 栈的使用
  • 避免防御式编程

ER实体Entity关系relationship


OOP [OOA/D]

  1. 属性、行为
  2. 继承、聚合、关联
  3. 抽象、封装

  • 笛卡尔方法论
    1. 拆分
    2. 排序
    3. 处理
    4. 归并
  • 软件工程过程方法论
    1. 软件生命周期
    2. RUP统一软件过程管理
    3. 敏捷开发
  • 项目管理(计划、组织、执行、控制)

  • 线性级
  • 逻辑级
  • 架构级
  • 工程级

自醒:

  1. type    type(object) -> the object's type
  2. str           str(object='') -> str ,Create a new string object from the given object
  3. dir               dir([object]) -> list of strings,return an alphabetized list of names comprising (some of) the              attributes of the given object, and of attributes reachable from it.
  4. help             Help on _Helper in module site object:

very important module:

  • os
  • sys

  • 常量
    1. 常量无名
    2. 不需要修饰
    1. 整数
    2. 长整数
    3. 浮点数
    4. 复数  
  • 字符串
    1. 单引号‘
    2. 双引号“
    3. 三引号”’
    4. 转义符\
    5. 原生字符串 r"hello world!\n"
    6. 常用的索引相关操作
    7. 切割操作
    8. 邪恶的 eval()
  • 变量
    1. 首字符为字母或下划线
    2. 其他部分字符为字母、数字、下划线
    3. 区分大小写
  • 数据类型
    1. 数值
    2. 字符串
    3. 线性容器
      • 字符串也是一种线性容器
      • List
      • tuple
    4. hash容器
      • Dict
      • set
    5. None
    6. 逻辑类型(Ture, False)
  • 逻辑行与物理行
  • 缩进
  • 运算符与表达式
  • 流程控制(逻辑控制结构)
  • 函数
    1. 普通

      def functionName():
      """……
    2. 函数别名
    3. lambda
    4. 闭包
      def fun1(a):
      def fun2(b):
      return a+b
      return fun2
  • OOP
  • 异常处理
  • 模块与包
#coding=utf-8
#!/usr/bin/python2.7
  • 文件和目录操作
open        Open a file using the file() type, returns a file object.
write
read
readlines
Seek
Os.listdir
Os.walk

  • python的内置容器
    1. List
    2. Tuple
    3. Dict
    4. Set
    5. map、reduce、filter
    6. 迭代器iterator与生成器generator,协同与半协同

  • 并行的世界
    1. 串行与并行
    2. 阻塞与非阻塞任务
    3. 共享与冲突
    4. 多线程与多进程【linux】的区别和特点

  • 多进程
    1. Linux、Unix平台专属
    2. Fork      【fork()函数通过系统调用创建一个与原来进程几乎完全相同的进程】
      1. import os
        
        def myfork():
        a=1
        pid = os.fork() if pid==0:
        print "this is child process"
        print a+1
        else:
        print "this is parent process"
        print a+3 if __name__ == '__main__':
        myfork()
        '''
        waitpid(...)
        waitpid(pid, options) -> (pid, status) Wait for completion of a given child process.
        ''' os.waitpid()
    3. wait
    4. Waitpid
    5. pipe\signal
      1. ''' process communication, resource share '''
        
        # pipe
        '''
        pipe(...)
        pipe() -> (read_end, write_end) Create a pipe.
        '''
        r,w = os.pipe() # signal
        import signal
    6. 守护进程

  • 多线程
    1. Thread
    2. Threading
    3. 共享变量与临界资源
    4. 锁机制

最新文章

  1. Unity3D热更新全书-脚本(四) 用C#LightEvil搭建实际开发使用的脚本框架
  2. UML类图归纳
  3. windows系统下的文件夹链接功能mklink/linkd
  4. Github上最受关注的前端大牛,快来膜拜吧!
  5. 原生JS中DOM节点相关API合集
  6. SpringBootApplication注解 专题
  7. Nginx隐藏index.php和配置vhost
  8. 后台商品搜索功能开发SQL
  9. Scrapy 框架 CrawlSpider 全站数据爬取
  10. EZ 2018 04 21 NOIP2018 模拟赛(十) -LoliconAutomaton的退役赛
  11. linux中使sqlplus能够上下翻页
  12. CentOS-7.x Yum Repo Mirror
  13. Thinkphp动态切换主题
  14. Mybatis整合通用Dao,Mybatis整合通用Mapper,MyBatis3.x整合通用 Mapper3.5.x
  15. EXT combobox 二级连动 清空store缓存数据
  16. 抽奖系统 random()
  17. 在Android上使用Socket
  18. bzoj3203【sdoi2013】保护出题人
  19. 冒泡排序_C语言_数组
  20. LCIS最长公共上升子序列

热门文章

  1. 泛型类、Map集合
  2. 使用泛型简单封装NGUI的ScrollView实现滑动列表
  3. CSS Sprites的详细使用步骤
  4. 深入理解C++中的explicitkeyword
  5. thinking in java 读书笔记 --- overriding private method
  6. android开发之记录ListView滚动位置
  7. android开发之merge结合include优化布局
  8. RedHat搭建IPA-Server
  9. jquery.qrcode和jqprint的联合使用,实现html生成二维码并打印(中文也ok)
  10. Python实战:美女图片下载器,海量图片任你下载