
老王的python笔记
真天下第七
这个作者很懒,什么都没留下…
展开
-
python PIL库操作图片的一些封装方法
使用new_image 或者 load_image创建画布 使用各种add方法 画画 使用save 或者 save_on_memory保存图片 from PIL import Image from PIL import ImageDraw from PIL import ImageFont class laowangImage: Image = None Draw = None # 创建一个白色画布 def new_image(self, width=400, heig原创 2020-11-21 16:39:29 · 410 阅读 · 0 评论 -
老王的python笔记之pymysql
pymysql连接数据库的基础封装类。 class conndb: def __init__(self, dbinfo): self.db, self.user, self.pwd, self.host, port = dbinfo self.port = int(port) def __GetConnect(self): if n...原创 2019-09-29 18:52:32 · 168 阅读 · 0 评论 -
老王python笔记之pandas操作数据库
基础封装类 class conndb: def __init__(self, dbinfo ): self.db, self.user, self.pwd, self.host, port = dbinfo self.port = int(port) def __GetConnect_for_pd(self): engine = c...原创 2019-09-29 19:00:58 · 220 阅读 · 0 评论