上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 46 下一页
摘要: http://blog.csdn.net/xie_wenfeng/article/category/6516697 阅读全文
posted @ 2017-02-22 17:55 easymoneySniper 阅读(113) 评论(0) 推荐(0)
摘要: !/usr/bin/env python import os import json import simplejson as json t=os.popen("""sudo netstat tlpn |grep redis|grep 0.0.0.0|awk '{print $4}'|awk F: 阅读全文
posted @ 2017-02-22 17:50 easymoneySniper 阅读(156) 评论(0) 推荐(0)
摘要: 按ESC键 跳到命令模式,然后: :w 保存文件但不退出vi :w file 将修改另外保存到file中,不退出vi :w! 强制保存,不推出vi :wq 保存文件并退出vi :wq! 强制保存文件,并退出vi q: 不保存文件,退出vi :q! 不保存文件,强制退出vi :e! 放弃所有修改,从上 阅读全文
posted @ 2017-02-22 16:47 easymoneySniper 阅读(176) 评论(0) 推荐(0)
摘要: http://101.96.10.34/isoredirect.centos.org/centos/7/isos/x86_64/CentOS 7 x86_64 Everything 1611.iso https://www.centos.org/download/ 阅读全文
posted @ 2017-02-22 16:26 easymoneySniper 阅读(139) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2017-02-22 14:30 easymoneySniper 阅读(1) 评论(0) 推荐(0)
摘要: Price Basic knowledge The effort to study UI design and friendly OS support Need install Max VUs support Record function support: Maintain scripts Tes 阅读全文
posted @ 2017-02-22 13:56 easymoneySniper 阅读(151) 评论(0) 推荐(0)
摘要: 外国人专门写了一篇文章,来分析为什么go在中国如此火: 《Why is Golang popular in China?》 http://herman.asia/why is go popular in china 下面是知乎的回复: 作者:匿名用户 链接:https://www.zhihu.com 阅读全文
posted @ 2017-02-22 13:44 easymoneySniper 阅读(575) 评论(0) 推荐(0)
摘要: coding: UTF 8 file('B.txt','wb').write(file('A.txt','rb').read()) 作业内容 这次作业较为简单,从一个a.txt的多行文本文件中读出内容写到一个b.txt文件,我相信大家应该都有很多写法。根据这个要求,甚至使用copyfile(src, 阅读全文
posted @ 2017-02-22 13:36 easymoneySniper 阅读(279) 评论(0) 推荐(0)
摘要: encoding: utf 8 ''' ''' import os 从文本(txt)中读内容 def readDataFromTxt(path): contents="" if os.path.exists(path): try: fr=open(path,'r') contents=fr.read 阅读全文
posted @ 2017-02-22 13:34 easymoneySniper 阅读(407) 评论(0) 推荐(0)
摘要: 1.将A.txt(多行)文件的内容读取出来写入到B.txt中 2.总结 一、python中对文件、文件夹操作时经常用到的os模块和shutil模块常用方法。 1.得到当前工作目录,即当前Python脚本工作的目录路径:os.getcwd() 2.返回指定目录下的所有文件和目录名:os.listdir 阅读全文
posted @ 2017-02-22 13:33 easymoneySniper 阅读(215) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 46 下一页