2022年7月20日

摘要: 1、获取当前路径文件名。 ##(3)获取当前路径的文件名。import ospath = './' # 替换为你的路径dir = os.listdir(path) # dir是目录下的全部文件print("当前目录的全部文件名称为::",dir)fopen = open('file01', 'a+' 阅读全文

posted @ 2022-07-20 15:01 风行天下-2080 阅读(1050) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3