這個問題還是要回歸到作業系統層面來解決,也就是依賴win32api模組。 >>> import win32file >>> def is_used(file_name): try: vHandle = win32file.
確定! 回上一頁