随笔分类 - Python
摘要:新建一个sheet, 并用 append() 方法填充数据 from openpyxl import Workbook book = Workbook() sheet = book.active sheet.title = 'student_score' rows = [('chinese', 's
阅读全文
摘要:参考教程地址: https://www.runoob.com/python/python-tutorial.html 常用代码总结 # 获取路径的文件名及其后缀 filename = os.path.basename(path) filename_without_ext, ext = os.path
阅读全文