python
gangliao
网吧里做网管。。
展开
-
python修改excel表格
# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. import xlrd import xlwt from xlwt import Workbook import os.原创 2022-03-26 10:28:51 · 3967 阅读 · 0 评论 -
python读文件,写文件,数组,遍历目录
# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. import xlrd import xlwt from xlwt import Workbook import os.原创 2022-03-26 01:30:23 · 1160 阅读 · 0 评论 -
python读写excel文件(xls格式)
from xlutils.copy import copy import xlrd import os.path # 修改xls文件里的单元格 # rb = xlrd.open_workbook('c:\\1.xls') # 打开1.xls文件 # wb = copy(rb) # 利用xlutils.copy下的copy函数复制 # ws = wb.get_sheet(0) # 获取表单0 # ws.write(30, 0, label='好的') # 增加(8,0)的值 # wb.save.原创 2022-03-25 20:36:22 · 3111 阅读 · 0 评论