Python Shallow and Deep Copy

一言以蔽之,Shallow Copy 不会递归地拷贝复合数据类型中的嵌套元素(如列表中的列表),因为其使用的是…

Read more...

Move Your Cursor Faster in Terminal

It could be quite annoying to change argument values wh…

Read more...

Conda Cheatsheet

https://uoa-eresearch.github.io/eresearch-cookbook/reci…

Read more...

Python Immutables

a = [[]]*6 a [[], [], [], [], [], []] a[1].append(&#822…

Read more...

*args and **kwargs in Python

Link: https://www.saltycrane.com/blog/2008/01/how-to-us…

Read more...

Python Inheritance

http://python-history.blogspot.com/2010/06/method-resol…

Read more...

Python Disambiguation

List Comprehension Looking at the below code, write dow…

Read more...

Python Generators

Generator functions allow you to declare a function tha…

Read more...