python 取得函数的参数

import inspect
>>> import wx
>>> inspect.getargspec(wx.Frame.__init__)
(['self'], 'args', 'kwargs', None)
>>> inspect.getargspec(wx.Frame.SetIcon)
([], 'args', 'kwargs', None)