摘要: 导入必要的模块 import os import subprocess 编写打开文件的函数 def open_file(file_path): """ 打开指定路径下的文件。 参数: file_path (str): 文件的路径。 """ if os.name == "nt": # 如果是 Wind 阅读全文
posted @ 2024-04-10 22:16 悬崖上的金鱼 阅读(15) 评论(0) 推荐(0) 编辑