随笔分类 -  PYTHON

摘要:只保留三天 加入到定时任务即可 阅读全文
posted @ 2018-08-16 16:43 清风徐来# 阅读(405) 评论(0) 推荐(0)
摘要:#!/usr/bin/env python# -*- coding:utf-8 -*-import os,xlsxwriter,datetimeimport ConfigParserfrom send_mail import send_mailpath = os.path.split(os.path.realpath(__file__))[0]###***获取配置文件中的变量conf_file... 阅读全文
posted @ 2017-11-03 17:57 清风徐来# 阅读(1212) 评论(0) 推荐(0)
摘要:前言 前段时间公司在做流媒体服务,与许多厂家合作拿了许多视频过来,现在要对这些视频文件进行整理,通过特殊的编码排列,获取他们的时长以及分辨率,这里我遇到一个大坑,请往下面看。 只需要传入文件的完整路径就可以获取到分辨率以及播放时长。 本次使用ffpmeg发现,使用的python3.6 ,32位和64 阅读全文
posted @ 2017-06-07 10:26 清风徐来# 阅读(6924) 评论(1) 推荐(1)
摘要:# 最近在实验楼学习了爬取妹子图,发现在运行的时候不是很流畅,有些图片下 1 # coding: utf-8 1 # coding: utf-8 2 3 import re 4 import threading 5 from urllib.request import urlopen 6 from 阅读全文
posted @ 2017-03-12 00:51 清风徐来# 阅读(437) 评论(0) 推荐(0)
摘要:安装 pip install sqlalchemy #!/usr/bin/env python # -*- coding:utf-8 -*- # 加载模块 from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String from sqlal... 阅读全文
posted @ 2016-12-14 09:33 清风徐来# 阅读(272) 评论(0) 推荐(0)
摘要:流程图: 代码 1 #!/sur/bin/env python 2 # -*- coding: utf-8 -*- 3 #{"backend": "www.oldboy.org","record":{"server": "100.1.7.90","weight": 20,"maxconn": 30} 阅读全文
posted @ 2016-04-28 18:10 清风徐来# 阅读(228) 评论(0) 推荐(0)
摘要:#/usr/bin/env python3# -*- coding: utf-8 -*-##This is an account login authentication##Version 1.0## # Created At 2016-4-11##Author He Wei'''Logindaut 阅读全文
posted @ 2016-04-15 14:36 清风徐来# 阅读(250) 评论(0) 推荐(0)