516551411
发表于 2020-7-24 15:43:58
以下几个函数有更新了
DeprecationWarning: Call to deprecated function get_sheet_names (Use wb.sheetnames).
DeprecationWarning: Call to deprecated function get_sheet_by_name (Use wb).
DeprecationWarning: Call to deprecated function remove_sheet (Use wb.remove(worksheet) or del wb).
张树袋
发表于 2020-7-24 17:19:14
1
lslslsls12
发表于 2020-7-27 16:41:49
1
fytfytf
发表于 2020-7-28 09:16:21
6666
penut'
发表于 2020-7-28 15:10:48
1
红蓝cp
发表于 2020-7-29 16:34:05
...
tech_2013
发表于 2020-7-31 10:10:47
答案回复可见
systmao
发表于 2020-8-1 20:40:16
爱笑的皮卡媛
发表于 2020-8-2 16:52:49
嘿嘿
反清复明君
发表于 2020-8-4 18:04:11
ooo
616476055
发表于 2020-8-7 15:04:39
答案
zcrui9911
发表于 2020-8-7 16:29:01
看看
lwhhlb
发表于 2020-8-10 21:36:40
import openpyxl as oxl
wb = oxl.load_workbook("豆瓣top250电影.xlsx")
sheet_names = wb.sheetnames
ws = wb]
nws = wb.copy_worksheet(ws)
for each_row in nws.rows:
if each_row.value == '阿甘正传':
each_row.value = '9.8'
if each_row.value == '这个杀手不太冷':
each_row.value = '9.6'
if each_row.value == '肖申克的救赎':
each_row.value = '9.7'
wb.save("豆瓣top250电影.xlsx")
KevinHu
发表于 2020-8-11 10:12:26
import openpyxl
wb = openpyxl.load_workbook("豆瓣TOP250电影.xlsx")
ws = wb.get_sheet_by_name("Sheet")
for goal, value in [("阿甘正传", 9.8), ("这个杀手不太冷", 9.6), ("肖申克的救赎", 9.7)]:
name = ws['A1']
while name.value != goal:
name = name.offset(1, 0)
score = name.offset(0, 1)
score.value = value
wb.save("豆瓣TOP250电影(改).xlsx")
lznanjing
发表于 2020-8-15 23:03:31
123456
ylzhangxinjiang
发表于 2020-8-17 00:38:30
新手报到。
fishc098
发表于 2020-8-18 21:39:00
朕想知道
则微
发表于 2020-8-18 23:30:21
学习学习
杨老师很厉害
发表于 2020-8-19 18:26:36
做完了
三叶
发表于 2020-8-19 20:44:36
好好学习,就是贵了点