【Python】数据写入excel和从excel中读取数据

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jcwang710448116/article/details/82424816

1.cmd中自己用pip安装,命令:

pip install xlwt

pip install xlrd

2.把数据写入excel,记得导入包,from xlwt import *

dic=[[199,'单肩包'],[200,'双肩包']]

3.从Excel读取数据

4.对于Excel中数据格式是时间类型的,需要额外处理

5.对字体,单元格的处理

猜你喜欢

转载自blog.csdn.net/jcwang710448116/article/details/82424816