摘要:
1. list相关的有一个比较有趣的问题,就是mystuff.append('hello'),python是怎么解释的。这里有段话讲的比较清楚,就不翻译了,直接贴过来。Python sees you mentionedmystuffand looks up that variable. It might have to look backwards to see if you created with=, look and see if it is a function argument, or maybe it's a global variable. Either 阅读全文