2022年11月24日
摘要: # 读取student_grade_input.txt文本文件内容datas = read_file()print("read_file datas:",datas)# 对读取出来的内容可以进行排序datas = sort_grades(datas)print("sort_grades datas: 阅读全文
posted @ 2022-11-24 21:20 行者白 阅读(84) 评论(0) 推荐(0)
摘要: # (实用技能)按照文件后缀名整理文件夹#怎么获取文件的后缀名: import os# os.path.splitext("/path/to/aaa.mp3")#输出:(“/path/to/aaa“,”mp3”)#怎么移动文件 import shutil shutil.move("aaa.txt", 阅读全文
posted @ 2022-11-24 20:28 行者白 阅读(29) 评论(0) 推荐(0)