blogjava-凯发k8网页登录
blogjava-凯发k8网页登录
http://www.blogjava.net/java-he/
追求简单到极致
zh-cn
sat, 08 apr 2023 20:39:06 gmt
sat, 08 apr 2023 20:39:06 gmt
60
python os.path模块
http://www.blogjava.net/java-he/archive/2012/05/03/377226.html
-274°c
-274°c
wed, 02 may 2012 16:10:00 gmt
http://www.blogjava.net/java-he/archive/2012/05/03/377226.html
http://www.blogjava.net/java-he/comments/377226.html
http://www.blogjava.net/java-he/archive/2012/05/03/377226.html#feedback
1
http://www.blogjava.net/java-he/comments/commentrss/377226.html
http://www.blogjava.net/java-he/services/trackbacks/377226.html
os.listdir(dirname):列出dirname下的目录和文件
os.getcwd():获得当前工作目录
os.curdir:返回但前目录('.')
os.chdir(dirname):改变工作目录到dirname
os.path.isdir(name):判断name是不是一个目录,name不是目录就返回false
os.path.isfile(name):判断name是不是一个文件,不存在name也返回false
os.path.exists(name):判断是否存在文件或目录name
os.path.getsize(name):获得文件大小,如果name是目录返回0l
os.path.abspath(name):获得绝对路径
os.path.normpath(path):规范path字符串形式
os.path.split(name):分割文件名与目录(事实上,如果你完全使用目录,它也会将最后一个目录作为文件名而分离,同时它不会判断文件或目录是否存在)
阅读全文
-274°c
2012-05-03 00:10
发表评论
]]>
在mac下安装python crypto 模块
http://www.blogjava.net/java-he/archive/2012/04/29/377030.html
-274°c
-274°c
sun, 29 apr 2012 09:15:00 gmt
http://www.blogjava.net/java-he/archive/2012/04/29/377030.html
http://www.blogjava.net/java-he/comments/377030.html
http://www.blogjava.net/java-he/archive/2012/04/29/377030.html#feedback
1
http://www.blogjava.net/java-he/comments/commentrss/377030.html
http://www.blogjava.net/java-he/services/trackbacks/377030.html
在网上找,好不容易在 https://www.dlitz.net/software/pycrypto/ 在这里找到了安装包文件:pycrypto-2.5.tar.gz
好解压缩,然后进入到当前的目录中,发现有setup.py ,执行:python setup.py install 结果在最后环节提示出问题了。没权限建立目录,于是切换到root 下,再操作,o了。
-274°c
2012-04-29 17:15
发表评论
]]>
python sys模块常用的功能
http://www.blogjava.net/java-he/archive/2012/04/29/377029.html
-274°c
-274°c
sun, 29 apr 2012 08:40:00 gmt
http://www.blogjava.net/java-he/archive/2012/04/29/377029.html
http://www.blogjava.net/java-he/comments/377029.html
http://www.blogjava.net/java-he/archive/2012/04/29/377029.html#feedback
0
http://www.blogjava.net/java-he/comments/commentrss/377029.html
http://www.blogjava.net/java-he/services/trackbacks/377029.html
python - sys备忘: 1.sys.
argv[]
eg: python test.py a1 a2
argv[0] 为test.py
2.sys.
platform
可以判断是具体什么操作系统平台。
3.sys.
exit(n)
0 是正常退出,其他都是异常退出,可以捕获。
os.abort() 可以强制退出。
4.sys.
path
在import 特定路径的模块时候:
import
sys;
sys.path.append(
"./../"
)
-274°c
2012-04-29 16:40
发表评论
]]>
php gzip压缩以及缓冲输出笔记
http://www.blogjava.net/java-he/archive/2011/12/14/366366.html
-274°c
-274°c
wed, 14 dec 2011 10:01:00 gmt
http://www.blogjava.net/java-he/archive/2011/12/14/366366.html
http://www.blogjava.net/java-he/comments/366366.html
http://www.blogjava.net/java-he/archive/2011/12/14/366366.html#feedback
0
http://www.blogjava.net/java-he/comments/commentrss/366366.html
http://www.blogjava.net/java-he/services/trackbacks/366366.html
阅读全文
-274°c
2011-12-14 18:01
发表评论
]]>
nginx与apache的rewrite规则的区别
http://www.blogjava.net/java-he/archive/2011/12/14/366361.html
-274°c
-274°c
wed, 14 dec 2011 09:35:00 gmt
http://www.blogjava.net/java-he/archive/2011/12/14/366361.html
http://www.blogjava.net/java-he/comments/366361.html
http://www.blogjava.net/java-he/archive/2011/12/14/366361.html#feedback
1
http://www.blogjava.net/java-he/comments/commentrss/366361.html
http://www.blogjava.net/java-he/services/trackbacks/366361.html
阅读全文
-274°c
2011-12-14 17:35
发表评论
]]>
nginx 一些常用的 url 重写方法
http://www.blogjava.net/java-he/archive/2011/12/14/366360.html
-274°c
-274°c
wed, 14 dec 2011 09:31:00 gmt
http://www.blogjava.net/java-he/archive/2011/12/14/366360.html
http://www.blogjava.net/java-he/comments/366360.html
http://www.blogjava.net/java-he/archive/2011/12/14/366360.html#feedback
0
http://www.blogjava.net/java-he/comments/commentrss/366360.html
http://www.blogjava.net/java-he/services/trackbacks/366360.html
阅读全文
-274°c
2011-12-14 17:31
发表评论
]]>
nginx 开启gzip压缩
http://www.blogjava.net/java-he/archive/2011/12/14/366356.html
-274°c
-274°c
wed, 14 dec 2011 09:21:00 gmt
http://www.blogjava.net/java-he/archive/2011/12/14/366356.html
http://www.blogjava.net/java-he/comments/366356.html
http://www.blogjava.net/java-he/archive/2011/12/14/366356.html#feedback
0
http://www.blogjava.net/java-he/comments/commentrss/366356.html
http://www.blogjava.net/java-he/services/trackbacks/366356.html
阅读全文
-274°c
2011-12-14 17:21
发表评论
]]>
一则mac下php调试器问题小记
http://www.blogjava.net/java-he/archive/2011/12/14/366354.html
-274°c
-274°c
wed, 14 dec 2011 09:07:00 gmt
http://www.blogjava.net/java-he/archive/2011/12/14/366354.html
http://www.blogjava.net/java-he/comments/366354.html
http://www.blogjava.net/java-he/archive/2011/12/14/366354.html#feedback
0
http://www.blogjava.net/java-he/comments/commentrss/366354.html
http://www.blogjava.net/java-he/services/trackbacks/366354.html
阅读全文
-274°c
2011-12-14 17:07
发表评论
]]>
ip地址获取当前地理位置接口
http://www.blogjava.net/java-he/archive/2011/12/01/365247.html
-274°c
-274°c
wed, 30 nov 2011 17:08:00 gmt
http://www.blogjava.net/java-he/archive/2011/12/01/365247.html
http://www.blogjava.net/java-he/comments/365247.html
http://www.blogjava.net/java-he/archive/2011/12/01/365247.html#feedback
2
http://www.blogjava.net/java-he/comments/commentrss/365247.html
http://www.blogjava.net/java-he/services/trackbacks/365247.html
阅读全文
-274°c
2011-12-01 01:08
发表评论
]]>
wget 下载文件重进行命名
http://www.blogjava.net/java-he/archive/2011/12/01/365246.html
-274°c
-274°c
wed, 30 nov 2011 16:54:00 gmt
http://www.blogjava.net/java-he/archive/2011/12/01/365246.html
http://www.blogjava.net/java-he/comments/365246.html
http://www.blogjava.net/java-he/archive/2011/12/01/365246.html#feedback
0
http://www.blogjava.net/java-he/comments/commentrss/365246.html
http://www.blogjava.net/java-he/services/trackbacks/365246.html
wget -c "www.baidu.com" -o baidu.index.html
保存输出日至,可以使用:
wget -c "www.baidu.com" -o baidu.index.html -o wget.log
注意: 第一“o”为大写的o,
第二个“o”,为小写的o
================================
-c : 支持断点续传
阅读全文
-274°c
2011-12-01 00:54
发表评论
]]>
centos 设置iptables 防火墙规则
http://www.blogjava.net/java-he/archive/2011/12/01/365245.html
-274°c
-274°c
wed, 30 nov 2011 16:45:00 gmt
http://www.blogjava.net/java-he/archive/2011/12/01/365245.html
http://www.blogjava.net/java-he/comments/365245.html
http://www.blogjava.net/java-he/archive/2011/12/01/365245.html#feedback
0
http://www.blogjava.net/java-he/comments/commentrss/365245.html
http://www.blogjava.net/java-he/services/trackbacks/365245.html
阅读全文
-274°c
2011-12-01 00:45
发表评论
]]>
[转]yum配置与使用
http://www.blogjava.net/java-he/archive/2011/12/01/365243.html
-274°c
-274°c
wed, 30 nov 2011 16:31:00 gmt
http://www.blogjava.net/java-he/archive/2011/12/01/365243.html
http://www.blogjava.net/java-he/comments/365243.html
http://www.blogjava.net/java-he/archive/2011/12/01/365243.html#feedback
0
http://www.blogjava.net/java-he/comments/commentrss/365243.html
http://www.blogjava.net/java-he/services/trackbacks/365243.html
阅读全文
-274°c
2011-12-01 00:31
发表评论
]]>
[转]discuz 经典php加密解密函数 authcode 解析
http://www.blogjava.net/java-he/archive/2011/11/30/365240.html
-274°c
-274°c
wed, 30 nov 2011 14:57:00 gmt
http://www.blogjava.net/java-he/archive/2011/11/30/365240.html
http://www.blogjava.net/java-he/comments/365240.html
http://www.blogjava.net/java-he/archive/2011/11/30/365240.html#feedback
1
http://www.blogjava.net/java-he/comments/commentrss/365240.html
http://www.blogjava.net/java-he/services/trackbacks/365240.html
原理如下,假如:
加密
明文:1010 1001
密匙:1110 0011
密文:0100 1010
阅读全文
-274°c
2011-11-30 22:57
发表评论
]]>
uchome php模板引擎
http://www.blogjava.net/java-he/archive/2011/11/28/365066.html
-274°c
-274°c
mon, 28 nov 2011 15:20:00 gmt
http://www.blogjava.net/java-he/archive/2011/11/28/365066.html
http://www.blogjava.net/java-he/comments/365066.html
http://www.blogjava.net/java-he/archive/2011/11/28/365066.html#feedback
0
http://www.blogjava.net/java-he/comments/commentrss/365066.html
http://www.blogjava.net/java-he/services/trackbacks/365066.html
阅读全文
-274°c
2011-11-28 23:20
发表评论
]]>
mac 下 netbeans xdebug 调试php代码
http://www.blogjava.net/java-he/archive/2011/11/23/364676.html
-274°c
-274°c
wed, 23 nov 2011 15:12:00 gmt
http://www.blogjava.net/java-he/archive/2011/11/23/364676.html
http://www.blogjava.net/java-he/comments/364676.html
http://www.blogjava.net/java-he/archive/2011/11/23/364676.html#feedback
0
http://www.blogjava.net/java-he/comments/commentrss/364676.html
http://www.blogjava.net/java-he/services/trackbacks/364676.html
阅读全文
-274°c
2011-11-23 23:12
发表评论
]]>
网站地图