Python 表格相关
刘长栋
这个作者很懒,什么都没留下…
展开
-
Python Excel 表格样式
import openpyxl from openpyxl.styles import Font from openpyxl.styles import colors #颜色 from openpyxl.styles import Alignment #对齐 from openpyxl.styles import Side,Border #边框 from openpyxl.styles import PatternFill,GradientFill #填充 imp原创 2021-10-31 22:14:15 · 323 阅读 · 0 评论 -
Python Excel图表
图表 引用openpyxl.chart [Barchart]图表 和[Reference]参考 模块 思路 Created with Raphaël 2.3.0创建图表设置标题创建数据图表定位sheet.add_chart(chart,"e2")values=Reference(sheet,min_col=1,min_row=1,max_row=10,max_col=1)chart.title="图表标题" chart.x_axis.title="时间" chart.y_axis.title="数量"原创 2021-11-01 11:18:17 · 270 阅读 · 0 评论 -
python 把列表里面的文字 接起来
把列表里面的文字 接起来 san="A" for i in ["b","c","d"]: san+=i print(san) Abcd san="A" for i in ["b","c","d"]: san+="-"+i print(san) A-b-c-d shan="0" for i in range(1,10):原创 2021-11-04 22:43:37 · 228 阅读 · 0 评论