摘要:
import zipfile with zipfile.ZipFile(r'E:/Python爬虫精进.zip','r') as f: for 文件名 in f.namelist(): 信息=f.getinfo(文件名) 文件名=文件名.encode('cp437').decode('gbk') p 阅读全文
posted @ 2020-07-11 11:47
马蹄哒哒
阅读(466)
评论(0)
推荐(0)
摘要:
import pandas excel=pandas.read_excel(r'E:\pandas练习\成绩单.xlsx') b=excel.style.bar(color='orange',subset=['test_1','test_2','test_3']) b.to_excel() 阅读全文
posted @ 2020-07-11 11:11
马蹄哒哒
阅读(191)
评论(0)
推荐(0)
摘要:
import seaborn import pandas excel=pandas.read_excel(r'E:\pandas练习\成绩单.xlsx') color_map=seaborn.light_palette('green',as_cmap=True) a=excel.style.back 阅读全文
posted @ 2020-07-11 11:02
马蹄哒哒
阅读(157)
评论(0)
推荐(0)
摘要:
import pandas excel=pandas.read_excel(r'E:\pandas练习\成绩单.xlsx') def low_score_red(s): color="red" if s<60 else "black" return "color:{}".format(color) 阅读全文
posted @ 2020-07-11 10:53
马蹄哒哒
阅读(206)
评论(0)
推荐(0)
摘要:
from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.shared import Pt from docx import Document w=Document(r'E:\word练习\a.docx') w.sections.odd_and_ 阅读全文
posted @ 2020-07-11 10:08
马蹄哒哒
阅读(274)
评论(0)
推荐(0)
摘要:
from docx.shared import Cm from docx import Document w=Document(,,,,) w.sections[0].header_distance=Cm(10) w.sections[0].footer_distance=Cm(10) w.save 阅读全文
posted @ 2020-07-11 09:22
马蹄哒哒
阅读(297)
评论(0)
推荐(0)

浙公网安备 33010602011771号