擅长:python、mysql、java
<p>您可以将参数存储在属性(<code>self.e</code>)中,或在函数调用时返回它们:</p>
<pre><code>class foo:
def __init__(self, *args):
self.a, self.b, self.c, self.d = self.e = args
def __call__(self):
return self.e
x = foo("name", "999", "24", "0.222")
a, b, c, d = x.e
# or
a, b, c, d = x()
</code></pre>