05 2022 档案

PyQt信号槽
摘要:PyQt信号槽的基本使用 参考:https://yunlord.blog.csdn.net/article/details/122934359 参考:http://www.zzvips.com/article/167013.html 初始化问题 参考:https://blog.csdn.net/zc 阅读全文

posted @ 2022-05-30 22:34 朝朝暮Mu 阅读(19) 评论(0) 推荐(0) 编辑

PyQt笔记 QTabWidget
摘要:QTabWidget 学习资料 官方:https://doc.qt.io/archives/qt-4.8/qtabwidget.html 参考:https://blog.csdn.net/sinat_36030341/article/details/117690626 阅读全文

posted @ 2022-05-30 08:58 朝朝暮Mu 阅读(27) 评论(0) 推荐(0) 编辑

东方财富网公司公告爬虫
摘要:东方财富网公司公告爬虫 参考:https://blog.csdn.net/qq_41072222/article/details/103855403 参考:https://www.likecs.com/show-203278451.html 参考:url = 'https://np-anotice- 阅读全文

posted @ 2022-05-29 16:35 朝朝暮Mu 阅读(154) 评论(0) 推荐(0) 编辑

python-pptx 学习笔记 Tables
摘要:Tables API #1.添加表格 #add_table方法得到shape对象,而不是table本身 from pptx import Presentation from pptx.util import Inches # create presentation with 1 slide prs 阅读全文

posted @ 2022-05-26 15:32 朝朝暮Mu 阅读(366) 评论(0) 推荐(0) 编辑

python-pptx 学习笔记 placeholder、Text
摘要:placeholder API #1.访问placeholder #通过idx访问 prs = Presentation() slide = prs.slides.add_slide(prs.slide_layouts[8]) #获得idx,遍历 for shape in slide.placeho 阅读全文

posted @ 2022-05-26 14:49 朝朝暮Mu 阅读(1002) 评论(0) 推荐(0) 编辑

python-pptx 学习笔记 Shapes
摘要:Shapes API Auto Shapes from pptx.enum.shapes import MSO_SHAPE #1.添加一个图形 shapes = slide.shapes left = top = width = height = Inches(1.0) shape = shapes 阅读全文

posted @ 2022-05-26 11:12 朝朝暮Mu 阅读(632) 评论(0) 推荐(0) 编辑

python-pptx 学习笔记 Presentation 和 Slides
摘要:Presentation API from pptx import Presentation #1.新建ppt prs = Presentation() #2.打开ppt prs = Presentation('file-path') #3.保存ppt prs.save('test.pptx') S 阅读全文

posted @ 2022-05-26 10:44 朝朝暮Mu 阅读(440) 评论(0) 推荐(0) 编辑

python python-pptx学习笔记
摘要:python-pptx学习笔记 参考:https://blog.csdn.net/weixin_42750611/article/details/108029796 官方文档:https://python-pptx.readthedocs.io/en/latest/ 阅读全文

posted @ 2022-05-26 09:06 朝朝暮Mu 阅读(44) 评论(0) 推荐(0) 编辑

python WindPy 学习笔记
摘要:WindPy 学习笔记 #1.连接wind from WindPy import w w.start() #2.获取日时间序列函数 WSD #wsd可以支持取 多品种单指标 或者 单品种多指标 的时间序列数据 w.wsd(codes, fields, beginTime, endTime, opti 阅读全文

posted @ 2022-05-25 14:45 朝朝暮Mu 阅读(2476) 评论(0) 推荐(0) 编辑

seaborn学习笔记
摘要:seaborn学习笔记 参考:https://seaborn.pydata.org/tutorial.html 官网:http://seaborn.pydata.org/ github: https://github.com/mwaskom/seaborn-data 1. 导入示例数据方法 参考:h 阅读全文

posted @ 2022-05-24 14:57 朝朝暮Mu 阅读(34) 评论(0) 推荐(0) 编辑

python docx API 之 Table
摘要:Table API 参考:https://python-docx.readthedocs.io/en/latest/api/table.html 1. Table对象 #1.创建table document.add_table() #2.在右侧新增列 add_column(width) #3.在底部 阅读全文

posted @ 2022-05-24 14:36 朝朝暮Mu 阅读(655) 评论(0) 推荐(0) 编辑

python docx API之 Text
摘要:Text API Paragraph API 参考:https://python-docx.readthedocs.io/en/latest/api/text.html #1.添加文本块 #text中可以包括特殊符号 #tab:/t; #newline:/n; #return:/r; add_run 阅读全文

posted @ 2022-05-24 14:10 朝朝暮Mu 阅读(88) 评论(0) 推荐(0) 编辑

python docx API 之 Document
摘要:Document API 参考:https://python-docx.readthedocs.io/en/latest/api/document.html #1.构造函数,返回Document对象 document = Document(docx=None) #2.添加标题 add_heading 阅读全文

posted @ 2022-05-24 13:34 朝朝暮Mu 阅读(617) 评论(0) 推荐(0) 编辑

python docx学习笔记 页眉和页脚 Headers Footers
摘要:header 访问header #1.访问header header = section.header #2.设置是否同上一节相同 header.is_linked_to_previous=True #3.新增header,此时is_linked_to_previous属性自动改为False par 阅读全文

posted @ 2022-05-23 17:56 朝朝暮Mu 阅读(165) 评论(0) 推荐(0) 编辑

python docx学习笔记 Sections
摘要:Sections section的访问和添加 #1.访问全文所有sections,得到结果列表 sections = document.sections #2.添加section #之后添加的段落和内容都会位于该section中 new_section = document.add_section( 阅读全文

posted @ 2022-05-23 17:00 朝朝暮Mu 阅读(487) 评论(0) 推荐(0) 编辑

python docx学习笔记 设置字体格式 character formatting
摘要:character formatting 设置字体样式和大小,加粗,倾斜,下划线 font = run.font font.name = 'Calibri' font.size = Pt(12) font.italic = True font.bold = True #下划线 font.underl 阅读全文

posted @ 2022-05-23 16:46 朝朝暮Mu 阅读(174) 评论(0) 推荐(0) 编辑

python docx 学习笔记 paragraph
摘要:paragraph学习笔记 修改段落格式属性 修改段落格式使用段落的paragraph_format属性,会生成一个 ParagraphFormat对象 设置段落对齐方式 document = Document() p = document.add_paragraph() pFormat = p.p 阅读全文

posted @ 2022-05-23 16:30 朝朝暮Mu 阅读(654) 评论(0) 推荐(0) 编辑

python-docx学习笔记
摘要:python-docx学习笔记 1.参考:https://blog.csdn.net/qq_40985985/article/details/120058382 2.官方文档:https://python-docx.readthedocs.io/en/latest/user/text.html 阅读全文

posted @ 2022-05-23 09:55 朝朝暮Mu 阅读(23) 评论(0) 推荐(0) 编辑

使用wind API查询某股票股价
摘要:需求分解 使用wind 提供的python API接口查询某支股票的收盘价 使用matplotlib对收盘价进行图形展示 利用python word相关包生成word格式报告 part1:使用使用wind 提供的python API接口查询某支股票的收盘价 w.start() #使用wsd函数获取时 阅读全文

posted @ 2022-05-21 14:40 朝朝暮Mu 阅读(956) 评论(0) 推荐(0) 编辑

matplotlib学习笔记_各种图形
摘要:柱形图 参考:http://c.biancheng.net/matplotlib/bar.html 直方图 参考:http://c.biancheng.net/matplotlib/histogram.html 饼图 参考:http://c.biancheng.net/matplotlib/pie. 阅读全文

posted @ 2022-05-21 11:27 朝朝暮Mu 阅读(25) 评论(0) 推荐(0) 编辑

matplotlib学习笔记_其他设置
摘要:设置网格grid grid(color='b', ls = '-.', lw = 0.25) - color:表示网格线的颜色; - ls:表示网格线的样式; - lw:表示网格线的宽度; #如果您只是想开启不带任何样式的网格,可以通过 grid(True) 来实现。 import matplotl 阅读全文

posted @ 2022-05-21 10:35 朝朝暮Mu 阅读(166) 评论(0) 推荐(0) 编辑

matplotlib学习笔记_subplot
摘要:subplot 基本用法 plt.subplot(nrows, ncols, index) #nrows 与 ncols 表示要划分几行几列的子区域(nrows*nclos表示子图数量) #index 的初始值为1,用来选定具体的某个子区域 #如果新建的子图与现有的子图重叠,那么重叠部分的子图将会被 阅读全文

posted @ 2022-05-20 19:26 朝朝暮Mu 阅读(78) 评论(0) 推荐(0) 编辑

matplotlib学习笔记_figure
摘要:1.生成figure对象 import matplotlib.pyplot as plt fig = plt.figure() #添加绘图区域axes区域 ax = fig.add_axes([left,bottom,width,height]) #括号中的四个参数分别是百分比的形式,标识相对于fi 阅读全文

posted @ 2022-05-20 17:10 朝朝暮Mu 阅读(63) 评论(0) 推荐(0) 编辑

matplotlib学习笔记_PyLab
摘要:PyLab用法举例 参考:http://c.biancheng.net/matplotlib/pylab-module.html #同时绘制多个图形 from pylab import * import numpy as np x = np.linspace(-3,3,30) plot(x,np.s 阅读全文

posted @ 2022-05-20 16:44 朝朝暮Mu 阅读(19) 评论(0) 推荐(0) 编辑

matplotlib学习笔记_pyplot API
摘要:pyplot API汇总 参考:http://c.biancheng.net/matplotlib/pyplot-api.html pyplot jupyter notebook中图像行内显示:%matplotlib inline 第一个例子 import numpy as np import pa 阅读全文

posted @ 2022-05-20 16:27 朝朝暮Mu 阅读(54) 评论(0) 推荐(0) 编辑

matplotlib学习笔记_简要介绍
摘要:matplotlib学习笔记 参考教程:http://c.biancheng.net/matplotlib/ 1.安装 pip install matplotlib 2.matplotlib扩展包(可能需要单独安装) Bashmap:这是一个地图绘制工具包,其中包含多个地图投影,海岸线和国界线; C 阅读全文

posted @ 2022-05-20 16:11 朝朝暮Mu 阅读(34) 评论(0) 推荐(0) 编辑

Python自动化笔记
摘要:Python操作excel笔记 参考:https://mp.weixin.qq.com/s/vzJ264VZeswXRuzM6a-hgA xlwings 新建工作簿 app=xw.App(visible=True,add_book=False) wb=app.books.add() wb.save( 阅读全文

posted @ 2022-05-14 12:22 朝朝暮Mu 阅读(25) 评论(0) 推荐(0) 编辑

Python学习之Scrapy笔记
摘要:Requests模块 会话对象的使用 requests.Session() 参考:https://wenku.baidu.com/view/1cad4d27cf1755270722192e453610661ed95a25.html BeautifulSoup模块 xpath教程 参考:https:/ 阅读全文

posted @ 2022-05-12 19:53 朝朝暮Mu 阅读(38) 评论(0) 推荐(0) 编辑

PyQt学习笔记
摘要:PyQt的安装 参考:https://www.cnblogs.com/ldym/p/16031455.html 将.ui文件编译成.py文件 参考1:https://blog.csdn.net/stormdony/article/details/80400032 参考2:https://blog.c 阅读全文

posted @ 2022-05-06 16:59 朝朝暮Mu 阅读(25) 评论(0) 推荐(0) 编辑

使用Python构建UI界面
摘要:需求背景:平时工作中要定期出具格式固定的运营报告,使用Python+Pandas+docxtpl编制了报告程序,但是对于不会编程的同事而言,使用终端运行程序,界面不太友好,鉴于此希望构建一个UI窗口来辅助同事使用。 用到的工具:Python的GUI构建包WxPyhton 步骤一:借助wxPython 阅读全文

posted @ 2022-05-06 15:46 朝朝暮Mu 阅读(695) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示