如果我打電話的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
非常有趣!我怎樣才能寫出這樣的類?我的意思是,我看到的這種函數重載的每一個技巧都沒有涉及明確的簽名。