2018-04-1919:04:25
测试代码如下:
import openpyxl import datetime wb = openpyxl.Workbook() ws = wb.active ws.title = 'sheet' ws['A1'] = 520 ws.append([1,2,3]) ws['A3'] = datetime.datetime.now() wb.save('first.xlsx')
小甲鱼教程网址:https://www.bilibili.com/video/av15834715/?p=7
openpyxl官方文档:http://openpyxl.readthedocs.io/en/stable/
openpyxl模块可以使用pip命令安装