擅长:python、mysql、java
<p>使用可变的默认参数(在您的例子中是dict)通常不是一个好主意,请参见<a href="http://docs.python-guide.org/en/latest/writing/gotchas/" rel="nofollow">here</a>了解解释:</p>
<blockquote>
<p>Create a new object each time the function is called, by using a
default arg to signal that no argument was provided (None is often a
good choice).</p>
</blockquote>