import Pass as p import time as t if __name__ == '__main__': p.swDownloadStartUds(r"C:\Repos\sumac\Test试\G001_1_GTT_SinX3\G001_1_GTT.s19", r"C:\Repos\sumac\Test试\G001_GTT_SW_Download.txt", "") while p.swDownloadIsInProgress(): p.swDownloadCheckHealth() print(p.swDownloadCurrentAction()) print(p.swDownloadProgressPercent()) t.sleep(1) p.swDownloadTearDown()