babulu
发表于 2020-3-14 20:45:40
甲鱼兄 这个有视频么
cjl123_0
发表于 2020-3-15 00:47:59
谢谢龟兄
脑子里的怪物
发表于 2020-3-15 00:59:37
openpyxl.cell.cell.column_index_from_string('JB')
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
openpyxl.cell.cell.column_index_from_string('JB')
AttributeError: module 'openpyxl.cell.cell' has no attribute 'column_index_from_string'
悲伤的一天
发表于 2020-3-15 20:52:20
1
sealy715
发表于 2020-3-16 22:17:38
我想知道
叶子666
发表于 2020-3-17 13:29:03
朕想知道
yzy632154
发表于 2020-3-18 13:41:56
for each_row in ws.rows:
if each_row.value == '阿甘正传':
each_row.value = 9.8
allearn_Python
发表于 2020-3-18 19:28:18
{:10_277:}
qingzk
发表于 2020-3-19 21:45:41
for each_movie in ws['A2':end]:
if each_movie.value = "...":
each_movie.offset(0,1).value = ...
fgc07
发表于 2020-3-20 11:04:26
我来拉
sanbyu
发表于 2020-3-21 08:49:54
参考一下
sanbyu
发表于 2020-3-21 08:58:17
小甲鱼老师,读取某一份excel文件中的列表内容, 然后要通过某个网站上支查找/爬取该列表上的内容, 需要哪个章节的课程呢?
微言大义
发表于 2020-3-23 11:17:03
学习
酒醉三分醒
发表于 2020-3-24 12:16:48
import openpyxl
wb = openpyxl.load_workbook('豆瓣TOP250电影.xlsx')
ws = wb['Sheet']
for each_name in ws.rows:
if each_name.value == '阿甘正传':
each_name.value = 9.8
if each_name.value == '这个杀手不太冷':
each_name.value = 9.6
if each_name.value == '肖申克的救赎':
each_name.value = 9.7
wb.save('豆瓣TOP250电影.xlsx')
AINIDEREN
发表于 2020-3-27 08:40:29
{:5_102:}
十月故里
发表于 2020-3-28 15:52:58
{:5_109:}
小小小菜菜菜
发表于 2020-3-29 01:35:19
向鱼神学习
Irelia丶
发表于 2020-3-29 20:30:50
学习了
601971945
发表于 2020-3-30 10:19:40
查看参考代码
longerots
发表于 2020-3-30 11:19:27
import openpyxl
wb = openpyxl.load_workbook(filename='豆瓣TOP250电影.xlsx')
ws = wb['Sheet']
wsc = wb['Sheet Copy']
for row_cell in wsc.rows:
if row_cell.value == '阿甘正传':
row_cell.value = 9.8
if row_cell.value == '这个杀手不太冷':
row_cell.value = 9.6
if row_cell.value == '肖申克的救赎':
row_cell.value = 9.7
wb.save('豆瓣TOP250电影.xlsx')