随笔分类 -  个人自定义算法

个人自己编写的算法
摘要:from PIL import Image def cut_picture(picture_url): """ 切图片 :param picture_url: 图片地址 :return: """ img = Image.open(picture_url) long, wide = img.size 阅读全文
posted @ 2020-09-06 22:15 小皮浩 阅读(165) 评论(0) 推荐(0)
摘要:from datetime import datetime, timedelta def day_of_month(year, month): str_from = '%s-%s-1 00:00:00' % (year, month) dt_from = datetime.strptime(str_ 阅读全文
posted @ 2020-08-31 11:49 小皮浩 阅读(237) 评论(0) 推荐(0)
摘要:from datetime import datetime, timedelta def plus_hours(time): plus_hours_time = datetime.strptime(time, "%Y-%m-%d %H:%M:%S") plus_hours_time = (plus_ 阅读全文
posted @ 2020-08-29 10:13 小皮浩 阅读(506) 评论(0) 推荐(0)