From b819f5dcf0317da4b17c590b979aa5c2eda26463 Mon Sep 17 00:00:00 2001 From: Muxiaoxiong <46742031+muxiaoxiong@users.noreply.github.com> Date: Wed, 16 Jun 2021 18:12:25 +0800 Subject: [PATCH] =?UTF-8?q?Update=20Task02=20Python=E4=B8=8EExcel.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OfficeAutomation/Task02 Python与Excel.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OfficeAutomation/Task02 Python与Excel.md b/OfficeAutomation/Task02 Python与Excel.md index 12dc159..0329920 100644 --- a/OfficeAutomation/Task02 Python与Excel.md +++ b/OfficeAutomation/Task02 Python与Excel.md @@ -135,9 +135,9 @@ from openpyxl import load_workbook exl = load_workbook(filename = 'test.xlsx') sheet = exl.active -sheet['A1'] = 'hello word' +sheet['A1'] = 'hello world' #或者cell = sheet['A1'] -#cell.value = 'hello word' +#cell.value = 'hello world' exl.save(filename = 'test.xlsx') #存入原Excel表中,若创建新文件则可命名为不同名称 ```