import os import shutil default_download_folder = os.path.join(os.path.expanduser('~'), 'Downloads') download_folder = os.path.normpath(os.path.join(os.path.dirname(__file__), 'downloads')) os.makedirs(download_folder, exist_ok=True) file_path = os.path.join(download_folder, 'output.wav') if os.path.exists(download_folder): destination_path = os.path.join(download_folder, 'output.wav') try: # shutil.move(file_path, destination_path) # print(f"文件已移動到: {destination_path}") print(file_path) except Exception as e: print(f"移動文件時出錯: {e}") else: print(f"文件不存在: {file_path}")