随笔分类 - 个人自定义算法
个人自己编写的算法
摘要:from PIL import Image def cut_picture(picture_url): """ 切图片 :param picture_url: 图片地址 :return: """ img = Image.open(picture_url) long, wide = img.size
阅读全文
摘要: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_
阅读全文
摘要: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_
阅读全文

浙公网安备 33010602011771号