码迷,mamicode.com
首页 >  
搜索关键字:walk    ( 975个结果
Python:打印目录下最大的十个文件
打印指定目录下最大的十个文件,并按倒序输出:vimtop10.py#!/usr/bin/envpythonimportosimportsysimportoperatordefgen_dic(topdir):dic={}a=os.walk(topdir)forp,d,fina:foriinf:fn=os.path.join(p,i)f_size=os.path.getsize(fn)dic[fn]=f_sizereturndicif__name__==‘__main_..
分类:编程语言   时间:2016-06-09 16:04:18    阅读次数:244
将目录下的照片自动筛选到其他目录
#!/bin/usr/python importos importsys importsubprocess filenum=open(‘/python/photolist‘,‘r+‘) list1=[] photofile=[] forlineinfilenum.readlines(): line=line.strip(‘\n‘) list1.append(line) filenum.close() forfilenamesinos.walk(‘/photo/photo‘): photofile.extend..
分类:其他好文   时间:2016-06-07 11:13:37    阅读次数:160
YJX_rxjh_22_3.2.4
走路功能集成到函数 (a)、走路CALL 状态开关分析 (b)、分析状态开关 基址+偏移 (c)、完成走路CALL函数Walk(x,y) 【00:45】走路CALL基本都已经分析完毕,还是没有找到精确的走路CALL。换一个思路,从 走路CALL的状态开关来分析 【01:00】∵ 我们发现,它有一点特 ...
分类:其他好文   时间:2016-05-18 17:44:59    阅读次数:103
【poj2230】Watchcow
Description Bessie's been appointed the new watch-cow for the farm. Every night, it's her job to walk across the farm and make sure that no evildoers ...
分类:其他好文   时间:2016-05-15 16:34:52    阅读次数:188
Python模块应用案例集锦
1、os模块1.1 Python os.walk的用法与举例 os.walk(top, topdown=True, onerror=None, followlinks=False) 可以得到一个三元tupple(dirpath, dirnames, filenames), 第一个为起始路径,第二个为 ...
分类:编程语言   时间:2016-05-13 23:25:20    阅读次数:451
HDU-5584-LCM Walk(数学)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5584 Description A frog has just learned some number theory, and can't wait to show his ability to his girlfriend. Now the frog is sitting...
分类:其他好文   时间:2016-05-13 01:28:02    阅读次数:292
HDU 4487 Maximum Random Walk 概率 dp
D - Maximum Random Walk Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Submit Status Practice HDU 4487 Appoint description:  System Crawler  (2016-05-03) ...
分类:其他好文   时间:2016-05-13 00:53:26    阅读次数:293
hdu 1142 A Walk Through the Forest (digkstra+记忆化搜索)
A Walk Through the Forest Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7322    Accepted Submission(s): 2685 Problem Description ...
分类:其他好文   时间:2016-05-12 23:26:30    阅读次数:191
poj 1852 Ants(贪心)
Ants Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 14061   Accepted: 6134 Description An army of ants walk on a horizontal pole of length l cm, each with a...
分类:其他好文   时间:2016-05-12 16:59:03    阅读次数:171
hdu 1142(迪杰斯特拉+记忆化搜索)
A Walk Through the Forest Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7330 Accepted Submissio ...
分类:其他好文   时间:2016-05-09 22:04:57    阅读次数:288
975条   上一页 1 ... 65 66 67 68 69 ... 98 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!