如果我打电话的QApplication的初始化没有参数,我得到基于参数计数的Python方法重载?
TypeError: arguments did not match any overloaded call: QApplication(list-of-str): not enough arguments QApplication(list-of-str, bool): not enough arguments QApplication(list-of-str, QApplication.Type): not enough arguments QApplication(Display, int visual=0, int colormap=0): not enough arguments QApplication(Display, list-of-str, int visual=0, int cmap=0): not enough arguments
非常有趣!我怎样才能写出这样的类?我的意思是,我看到的这种函数重载的每一个技巧都没有涉及明确的签名。