f=open('ha.log','r')f.read()f.close()f=open('ha.log','w')'''只写,存在清空再写'''f.write('gdghfdh')f.close()f=open('ha.log','x') '''文件存在报错,不存在只写'''f.write('gdg ...
分类:
其他好文 时间:
2017-10-27 01:40:20
阅读次数:
114
1. Spartan-6系列封装概述 Spartan-6系列具有低成本、省空间的封装形式,能使用户引脚密度最大化。所有Spartan-6 LX器件之间的引脚分配是兼容的,所有Spartan-6 LXT器件之间的引脚分配是兼容的,但是Spartan-6 LX和Spartan-6 LXT器件之间的引脚分 ...
分类:
其他好文 时间:
2017-10-27 01:35:55
阅读次数:
291
今天看到哔哩哔哩图片站的图片hover效果,看了下f12,写了个demo。codepen代码如下https://codepen.io/bhaltair/pen/zPOxry原理是:利用图片容器设置transform: scale(1.1),并且设置transition: transform 0.5s... ...
分类:
Web程序 时间:
2017-10-27 01:14:55
阅读次数:
379
1.mkdir 创建目录 -p 创建多级目录 mkdir -p /data/test -m, --mode=模式 设置权限模式(类似chmod),而不是rwxrwxrwx 减umask -p, --parents 需要时创建目标目录的上层目录,但即使这些目录已存在也不当作错误处理 ○ [root@w ...
分类:
系统相关 时间:
2017-10-26 23:21:16
阅读次数:
454
内置函数dir ['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute ...
分类:
其他好文 时间:
2017-10-26 23:06:35
阅读次数:
207
#Neutron控制节点集群 openstack pike 部署 目录汇总 http://www.cnblogs.com/elvi/p/7613861.html #同步controller1配置并修改Node=controller2rsync -avzP -e 'ssh -p 22' control ...
分类:
其他好文 时间:
2017-10-26 23:05:47
阅读次数:
264
项目托管平台地址:https://gitee.com/Marly/codes/vbnfqyx3mzpsk8062rc9e77 模块测试: 不带括号fun功能, 代码部分: def fun(s): l = re.findall('([\d\.]+|/|-|\+|\*)',s) sum=0 while ...
分类:
其他好文 时间:
2017-10-26 19:57:35
阅读次数:
118
浅拷贝, list值是可变的,str值不可变,只能重新赋值 ...
分类:
编程语言 时间:
2017-10-26 16:14:24
阅读次数:
224
in this way you can easy get the output string of your input command in C++ refer to http://www.cplusplus.com/forum/unices/144187/ ...
分类:
编程语言 时间:
2017-10-26 15:37:45
阅读次数:
235
由于接收的数据经过gZip处理过,所以在接受的时候也要处理,并且加上编码格式(没有会出现部分数据乱码): 具体代码实现如下: 测试问题解决。。 ...
分类:
Web程序 时间:
2017-10-26 15:29:42
阅读次数:
266