03 2023 档案
摘要:###1.安装pyinstaller pip install pyinstaller 是最简单的安装方式 ###2.要打包的文件目录下,并执行命令 允许一个文件 pyinstaller.exe -F .\ 要打包的py文件 pyinstaller.exe -F .\wei_dian_vbuyCrea
阅读全文
摘要:根据水果名称和城市,将表格2中的订单号插入到表格1中的批注中去。 表格2如下 表格1如下 解决方法 from openpyxl import Workbook from openpyxl.comments import Comment import openpyxl from openpyxl.ut
阅读全文
摘要:###第一种方法 使用 str.rstrip() 方法从字符串中删除最后一个逗号,例如 new_str = my_str.rstrip(';')。 str.rstrip() 方法将返回删除尾随逗号的字符串副本 str = '颜色:高帮下单备注;尺寸:42;' new_str = str.rstrip
阅读全文