随笔分类 - PYTHON
摘要:#!/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...
阅读全文
摘要:前言 前段时间公司在做流媒体服务,与许多厂家合作拿了许多视频过来,现在要对这些视频文件进行整理,通过特殊的编码排列,获取他们的时长以及分辨率,这里我遇到一个大坑,请往下面看。 只需要传入文件的完整路径就可以获取到分辨率以及播放时长。 本次使用ffpmeg发现,使用的python3.6 ,32位和64
阅读全文
摘要:# 最近在实验楼学习了爬取妹子图,发现在运行的时候不是很流畅,有些图片下 1 # coding: utf-8 1 # coding: utf-8 2 3 import re 4 import threading 5 from urllib.request import urlopen 6 from
阅读全文
摘要:安装 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...
阅读全文
摘要:流程图: 代码 1 #!/sur/bin/env python 2 # -*- coding: utf-8 -*- 3 #{"backend": "www.oldboy.org","record":{"server": "100.1.7.90","weight": 20,"maxconn": 30}
阅读全文
摘要:#/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
阅读全文

浙公网安备 33010602011771号