擅长:python、mysql、java
<p>制作一个使用字典作为参数的方法</p>
<pre><code>class MyClass:
def doit(self, dictionary):
for key, value in dictionary.iteritems():
if key not in self.INPUT['extras']:
dictionary[key] = self.dirs['confdir'] + '/' + value
def run(self):
self.doit(self.mfiles)
self.doit(self.nmfiles)
</code></pre>