原创 PyQt5中TextBrowser顯示print語句輸出

目的:將程序的輸出內容在TextBrowser中顯示 實現: 假定定義的TextBrowser名爲textBrowser,主界面名爲Ui_MainWindow。直接定義一個textBrowser的輸出函數: def printf(