码迷,mamicode.com
首页 >  
搜索关键字:python time    ( 184154个结果
用Python和FFmpeg查找大码率的视频文件
用Python和FFmpeg查找大码率的视频文件 本文使用Python2.7, 这个工作分两步 遍历文件夹下的视频文件用ffprobe获取是视频文件的码率信息 用ffprobe 获取json格式的视频信息 用ffprobe.exe是FFmpeg自带的查看视频信息的工具,其获取json格式的信息命令如下 ffprobe -v quiet -print_format json -show...
分类:编程语言   时间:2014-05-13 16:26:01    阅读次数:599
一道超级坑爹的水题(ACdream oj 无耻的出题人)
A - 无耻的出题人 Time Limit: 2000/1000 MS (Java/Others)      Memory Limit: 65536/32768 KB (Java/Others)  Submit Status Problem Description 听到X神要参加比赛,只会Fibnacci数的出题人被吓得哭晕在厕所。为了防止X神AK(ALL KI...
分类:其他好文   时间:2014-05-13 16:01:26    阅读次数:234
Python重写C语言程序100例--Part4
''' 【程序24】 题目:有一分数序列:2/1,3/2,5/3,8/5,13/8,21/13...求出这个数列的前20项之和。 1.程序分析:请抓住分子与分母的变化规律。 2.程序源代码: ''' #方法一 a = 2.0 b = 1.0 s = 0 for n in range(1,21): s += a / b t = a a = a + b b = t ...
分类:编程语言   时间:2014-05-13 15:54:13    阅读次数:371
HDU 4788 (14.05.12)
Hard Disk Drive Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 647    Accepted Submission(s): 350 Problem Description   Yesterday ...
分类:其他好文   时间:2014-05-13 15:19:16    阅读次数:290
Best Time to Buy and Sell Stock
原题: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, buy one and sell one share of th...
分类:其他好文   时间:2014-05-13 14:12:41    阅读次数:342
poj2104(主席树)
K-th Number Time Limit: 20000MS   Memory Limit: 65536K Total Submissions: 35704   Accepted: 11396 Case Time Limit: 2000MS Description You are working for Macrohard com...
分类:其他好文   时间:2014-05-13 14:07:41    阅读次数:203
python变量和作用域
1、作用域介绍 python中的作用域分4种情况: L:local,局部作用域,即函数中定义的变量; E:enclosing,嵌套的父级函数的局部作用域,即包含此函数的上级函数的局部作用域,但不是全局的; G:globa,全局变量,就是模块级别定义的变量; B:built-in,系统固定模块里面的变量,比如int, bytearray等。 搜索变量的优先级顺序依次是:作用域局部...
分类:编程语言   时间:2014-05-13 14:06:38    阅读次数:292
HDU3920:Clear All of Them I(状态压缩)
Problem Description Acmers have been the Earth Protector against the evil enemy for a long time, now it’s your turn to protect our home.   There are 2 * n enemies in the map. Your task is to clear a...
分类:其他好文   时间:2014-05-13 11:29:40    阅读次数:308
兼容安卓的java工程1.0
//兼容安卓的系统package cn.com.likeshow; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import myvm.test.myActivity; /* * author 张章 * * time 2014-5-12 * ...
分类:移动开发   时间:2014-05-13 11:24:32    阅读次数:399
字符串问题python实现(二 )
问题:求字符串中重复出现且长度最长子字符串,要求输出:符合条件子字符串、其重复出现次数、其首字母位置。分析:后缀数组方法求解。python版实现。...
分类:编程语言   时间:2014-05-13 11:19:23    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!