Who am I? Coming October 18, 2016! 我是谁?2016.10.18 拭目以待! Don't worry. You will be a wow. Don't worry. I will be a wow and I will walk on my new road to ...
分类:
其他好文 时间:
2016-12-04 16:13:03
阅读次数:
244
#!/usr/bin/envpython
importos
importsys
importoperator
defgetFile(dir1):
d=os.walk(dir1)
dic={}
fora,b,cind:
foriinc:
fn=os.path.join(a,i)
f_size=os.path.getsize(fn)
dic[fn]=f_size
returndic
if__name__==‘__main__‘:
dir1=sys.argv[1]
dic=getFile(dir1)
sort..
分类:
编程语言 时间:
2016-11-28 23:55:41
阅读次数:
265
""" rename files """# --*-- encoding:utf-8 --*-- import os Number = 0newnames = [] def rnfiles(path=None): global Number filesname = os.listdir(path) ...
分类:
其他好文 时间:
2016-11-28 17:27:15
阅读次数:
188
之后再题目图片中搜索 003B 将之后的乱码提取出来保存为zip文件 但还是没法搞定 之后发现zip文件头不对 于是百度一下504B030414000000替换之 解压 找到女神图片 校验工具查看之 ...
分类:
其他好文 时间:
2016-11-23 22:09:36
阅读次数:
376
类的特性: a.封装 1.防止数据被随意修改 2.使外部程序不需要关注对象内部的构造,只需要通过对象,对外提供的接口进行直接访问即可 b.继承 1.子类通过继承父类的方式,以最小代码量的方式,实现不同角色的共同点,和不同点 2.多继承时,继承顺序的区别 其中python2 就是深度查询,python ...
分类:
其他好文 时间:
2016-11-21 08:12:02
阅读次数:
247
由于业务关系,经常需要写一些表单页面,基本也就是简单的增删改查然后上传,做过几个页面之后就有点想偷懒了,这么低水平重复性的体力劳动,能不能用什么办法自动生成呢,查阅相关资料,发现android stu...
分类:
移动开发 时间:
2016-11-20 23:13:11
阅读次数:
634
一 foreach的引用 上面的代码会输出什么? 这是因为foreach的源代码中,对变量进行了引用。导致其作用之后,将地址赋值于最后一个 例: 示意图: 解决方法: 二 擅于用array_walk 和 foreach, for 执行的结果:就使用for, 没有对数组操作 花费: 0.1538858 ...
分类:
Web程序 时间:
2016-11-16 15:19:53
阅读次数:
275
#利用python批量修改SecureCRT会话密码
#-*-coding:utf-8-*-
importos,re
defCRT_Path(path,*args,**kwargs):
for(dirpath,dirnames,filenames)inos.walk(path):
forfileinfilenames:
fullname=os.path.join(dirpath,file)
f1=open(fullname,‘r‘,encoding="utf-8")
alllines=f..
分类:
编程语言 时间:
2016-11-16 09:36:00
阅读次数:
367
作业1130http://www.cnblogs.com/luliqin/https://github.com/luliqin5134http://www.cnblogs.com/hgf520/https://github.com/crown9995122http://www.cnblogs.com... ...
分类:
其他好文 时间:
2016-11-13 22:34:28
阅读次数:
375
Problem D. What a Beautiful Lake Description Weiming Lake, also named "Un-named Lake", is the most famous scenic spot in Peking University. It is loca ...
分类:
其他好文 时间:
2016-11-13 17:14:34
阅读次数:
295