Skip to content

Commit 2e5c396

Browse files
committed
Merge pull request Show-Me-the-Code#85 from dayiguizhen/patch-2
Update 0016.py
2 parents 9eda73d + 9b86b62 commit 2e5c396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jimmy66/0016/0016.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def gen_xls(l,filename):
2020
for row in l:
2121
for col in row:
2222
table.write(l.index(row),row.index(col),col) #row表示行,col表示列,后者的英文不一定匹配,我还是再查找下,list.index()可以得到列表中对于元素的索引值
23-
fp.save('numbers.xls')
23+
fp.save(filename)
2424
print '写入完毕'
2525

2626
#主函数,我猜这次返回的应该是列表吧

0 commit comments

Comments
 (0)