摘要: import os # 获取完整路径 file_path = os.path.abspath(__file__) # 获取文件名(带扩展) file_name = os.path.basename(__file__) # 获取文件名(不带扩展) file_name_no_ext = os.path. 阅读全文
posted @ 2025-02-02 09:03 __username 阅读(278) 评论(0) 推荐(0)