您当前的位置:首页>课程>

浏览:226
分享

成喆 Read more

百林哲咨询(北京)有限公司专家团队成员

美国上市的顶级大数据技术平台公司高级技术经理、架构师从业超过10年,熟悉大数据平台构建技术、大数据分析可视化技术,安全领域技术等,Python领域公认专家、首席讲师,曾经在PyCon2015、PyCon2016进行过分享

简介

顶级大数据平台公司的资深架构师、最权威Python大会PyCon首席讲师讲授,实战与10年+经验与技巧结合,掌握Python在开发设计中应用的最佳捷径。全真案例,借助软件开发中核心的知识和原理,借助最佳实践,帮助您提高设计能力,从而提高开发效率和设计质量。以新视角,揭示Python语言核心的本质、思想方法,剖析出设计开发之“道”,跳出“为学习而学习”的“陷阱”提升详细设计能力,使开发人员由“编程小工”到设计专家

目标

1.掌握Python核心语法并灵活使用

2.掌握Python3核心变化并灵活使用

3.掌握Python常见错误与最佳实践并灵活使用

4.掌握测试、调试与排错技巧和场景,并灵活应用

学员要求

不要求全部达到,具备以下条件,对于掌握本课程内容会垫底一个良好的基础:

1.学员使用某种高级编程语言超过两年,知道什么是函数、过程、异常、IO以及面向对象等基本概念

2.理解组件封装技术,了解变化、重用以及重构的一般技术和概念

3.学员编写过单元测试,包括但不限于:

a.知道单元测试的意义、范围和一般测量方式

   b.编写过特定语言的单元测试代码(不限于Python)

分享提纲

Python Overview

- Python in one slide

- Python Implementations

- The good in Python

- The bad in Python

- Python Performance

- Pythonic

- Python IDEs

IPython (Notebook) Introduction

- What’s new in IPython

- auto completion

- help and interuption

- run external file

- run script in clipboard

- Hotkey

- magic command

- matlotlib integration

- variable operations

- command logging

- shell operations and python - integration

- notebook feature

First Python

- First Python script example

- Code line formatting

- Comments and Documentation

- Keywords overview

- Operations overview,

- Conditions, Loops, Functions, import examples

(Cover keywords: True, False, return, continue, for, def, import, pass, if, elif)

Operations

- Operation overview

- is and ==

- Some differences with C/C++

- Variable initialization

- Swap

(Cover keywords: is, None)

Condition

- Condition overview

- Nature of “and” and “or”

- Assert

 (Cover keywords: if, else, is, not, assert, and, or, build-in functions: isinstance)

Loops

- Loop overview

- Lazy loop

- enumerate()

- else statement

- loop best practice

 (Cover keywords: for, while, continue, break, in, else, yield. build-in functions: enumerate)

String

- String encoding and Unicode

- String slicing

- String combination

- String formatting

- Large String operation

- str() and repr()

Native datatypes

- Overview

- Operations

- Tuple

- List

- range, xrange

- Dict

- View Object

- Immutable vs. mutable

- sort vs. sorted

- list comprehension

- copy and deepcopy

- selct suitable data structure

(Cover keywords: delete, build-in functions: id, list, dict, set, tuple, map)

Collections

- namedtuple

- OrderedDict

- defaultdict

Function

- Something differences with C/C++

- Optional and Named Arguments

- Pass value or by reference

- Type check

- Default argument trap

- Lambda

(Cover keywords: lambda)

Module and Package

- Module file structure

- From import

- Absolute import

- Import mechanism

(Cover keywords: import)

Naming lookup

- Difference between Python and C/C++

- Local namespace

- Global namespace

- eval()

- Nested namespace

- Build-in namespace

(Cover keywords: global, nonlocal)

Exceptional

- Handling Exceptions

- Try-except-else-finally

- finally trap

- Using sys.modules

- With statement

(Cover keywords: try, except, else, finally, raise, with, as)

Objects and OO

- Importing using From Import

- Defining classes

- Instantiating Classes

- Garbage Collection

- Object Reference with getattr

- Special Class Methods: get and set items

- Advanced Class Methods

- Class Attributes

- Private Functions

Advanced topics above class levels

- Everything is object

- Build-in objects

- About __init__()

- Self

- Subclassing build-in types

- Accessing Methods from Superclasses

- Python MRO

- Descriptors and Properties

- Slots

- Python object protocols

- Metaclass

- Override Operator 

Core Python Mechanism I

- Iterator inside

- Write a iterator via class

- Generator != Function

- Generator = iterator?

- Generator Inside

- Context manager

Core Python Mechanism II

- Function decorator

- Decorator implementation

- Multiple decorators

- Parameterized decorator

- Decorator mechanism

Python3核心变化

- 字符串与类变化

- 遍历器解包与变参调用

- 变量与函数标注

- 异常链

- 生成器委托

Regular Expression (Optional)

- Regular expression syntax in Python

- Advanced Knowledge

- Methods and libraries

- Examples and Practices

Unit Test Framework [Optional]

- doc test

- unittest

- nose

- pytest

- behave

- robot framework

- others framework


我要参加

可同时提交您的需求,我们会及时与您联系

预约内训

将课程带入到您的团队,为您的团队进行一对一辅导。

相关课程