摘要: 首先安装mysql-connector模块: pip install mysql-connector 模块使用方式: # 引入模块 import mysql.connector; # 连接数据库 db = mysql.connector.connect( host = "localhost", us 阅读全文
posted @ 2021-04-24 17:45 何效名 阅读(81) 评论(0) 推荐(0) 编辑
摘要: from win32com.client import constants, gencache def word2Pdf(wordPath, pdfPath): word = gencache.EnsureDispatch('Word.Application'); # office # word = 阅读全文
posted @ 2021-04-24 10:31 何效名 阅读(449) 评论(0) 推荐(1) 编辑