擅长:python、mysql、java
<p>我会说,只需将参数作为关键字添加回默认值None。然后引发一个错误,解释某些输入数据丢失。在</p>
<pre><code> class ClientC(BaseClient):
....
def create(self,entity_id=None, data):
if entity_id:
raise RedudantInformationError("Value for entity_id does nothing")
pass
</code></pre>
<p>这样,每当程序员试图像处理其他childs一样处理childc时,他会得到一个警告提醒他,但是他可以通过使用try语法轻松地一步一步地完成。在</p>