Giter Club home page Giter Club logo

python-in-action's Introduction

python-in-action

基础

  • 交换:a, b = b, a
    # 在python中,会在过程中生成一个元组 c,并且c = (b ,a),
    # 然后进行a = c[0] , b = c[1] 的操作
    
  • with原理
    # with语句适用于对资源访问的场景,确保不管使用过程中是否发生异常都会执行必要的“清理”
    # 自定义上下文管理器来对软件系统中的资源进行管理, 比如数据库连接、共享资源的访问控制
    

高阶函数

闭包

模块

  • 弄懂这个只需要在google上搜索: python if name == 'main

然后看stack overflow上的第一个回答就知道了。

参考

python-in-action's People

Contributors

i-qiqi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.