源代码怎么读"/>
python源代码怎么读
将读Chainer, Pytorch的python源代码所需的基础知识和技能汇总在这里
条件语句中True or False的用法
多重条件与if_else同行
list的基本用法
string的各种format用法
用for loop直接在list element 上循环,for loop 与 range的用法
如何使用break, continue
如何使用while loop
如何使用dictionary
如何使用try except
如何使用tuple, set
如何使用function
如何构建console app雏形
如何使用nested function
如何通过函数改变global variable的值
练习np.save, np.load, 函数改变global variable值,try except用法, type(students_info) == type(None)
如何使用yield 来构建generator iterator?
如何使用map, filter, reduce, lambda, zip_longest
如何使用class, methods, attributes, class attributes
如何使用subclass(superclass)与super()
如何构建和使用module
Python the fundamentals
如何运行 python module?with as 的用法?
如何使用return?
关于function, module, __name__, "__main__"?
如何理解script, module, program? from a03 import (func1, func2)
如何写documents? 什么是shebang #!?
如何理解value and identity or address
如何理解出入函数的value and identity or address
如何理解positional, named, default arguments的用法?为什么default arguments 要用immutable object?
零星问答
如何理解dynamic and strong type?
- add("love", "python"), add(1,3), add(1.2, 3.4)
- add("love", 100)
如何理解variable scoping?
- local, enclosing, global, built-in
如何探索object内部?
- type(), dir(), __name__,__doc__
- `is` for object identity
- `==` for value comparison
如何理解和使用tuple?
如何理解str, range, list?
如何理解dict and set?
如何理解和使用try except raise finally?
如何理解和使用comprehension, iteration,generator, all, any?
如何理解dict的key必须是unique,immutable?
如何理解和构建:从iterable object 到iterator?
如何replace one type of error with more appropriate error?
如何理解generator? use yield, no return, no args
generator赋值时是构建了独立的address?
generator的运行顺序和逻辑?
为什么generator比list省内存?
如何使用any and all?
all ( [] ): true ? any ( [] ): false
如何用init, raise Error来规范args的使用?为什么部分attributes, methods 有prefix _?
为什么和如何使用unittest?
如何构建和安装library?
什么是module, package? python 如何寻找我们需要的library source files?
如何让module中的class直接被package调用?
如何使用.|..来调用不同modules中的内容?源自pluralsights课程截图
注意事项
export PYTHONPATH= 或者 sys.path.append("") 必须在package dir 的上一级dir
第一层级的__init__.py 必须有的引用内容,第二层级__init__.py空的没关系
间接引用: dot
两个modules不要交叉引用
为什么以及如何使用 __all__?
为什么以及如何使用namespace package?
如何让lib直接运行做点事?(lib 作为可执行文件)
推荐的 package structures
如何让class instance or object 成为callable object?视频笔记
如何在func中使用 *args, **kwargs?
更多*args, **kwargs的demos
如何理解global, nonlocal,closure,local function 的应用?
decorator: 让func 更灵活多变,不必更改func自己
more on decorator: functools.wraps 与实际用途
如何理解class attributes vs instance attribute?
如何理解staticmethod与classmethod的区别?
如何理解@property的用途 文档笔记
从python 层面做 autograd 解读unary_to_nary(unary_operator)函数因为多重嵌套函数和decorator,目前解读困难- input, output
- print args, *args, **kwargs
- how unary_operator really defined
- @decorator可以debug追溯
- init.py 与底层函数的内print
自己早期说的话
每天一点点,希望能达到python career的水平!
计划在这里更新多门python课程的学习笔记courses from edx, coursera, datacamp
为什么要学python?因为pytorch, 真的想学好C,但国内外收费免费的C课程(系统且足够深的课程),相比python太少
其实任何算法,任何语言都可以写,关键是掌握的是否系统和深入,python的课程资源更丰富;
python在data science 领域的应用很强大;
python也能来写web app, 和其他任何语言能做的事(只是不是最高效);
为什么一定要站队python3?python2 将于2020年终止更新
更多推荐
python源代码怎么读
发布评论