Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

python-repo/HeadFirstPython

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

#python语言特性

##参数类型

##元祖tuple和数组list

##切片

##函数式编程

  1. ###基本类型作为参数
  2. ###把函数作为参数

##高级函数

  1. ###sorted
  2. ###reduce
  3. ###map
  4. ###闭包closure
  5. ###匿名函数:map(lambda x :x*x,[1,2,3]) 只能有一个表达式,不写return,返回值就是该表达式的结果
  6. ###cmp(x,y)
  7. ###装饰器decorator
    • ####@log打印日志
    • ####@performance检测性能
    • ####@transaction数据库事务
    • ####@post('/register')URL路由
  8. ###带参数的装饰器decorator
  9. ###完善decorator装饰器,函数对应属性更新
  10. ###偏函数functools.partial可以把一个参数多的函数变成一个参数少的新函数,少的参数需要在创建时指定默认值。

#模块 ##包文件下必须有__init__.py文件

#python学习资源

##慕课网:在线it教育MOOC

#python高级框架

  1. 文件操作:IO和socket
  2. 多线程和多进程
  3. web开发

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.