??xml version="1.0" encoding="utf-8" standalone="yes"?>BlogJava-E序之旅http://www.dentisthealthcenter.com/JAVA-HE/q求单到极致zh-cnThu, 07 Dec 2023 16:52:52 GMTThu, 07 Dec 2023 16:52:52 GMT60python os.path模块http://www.dentisthealthcenter.com/JAVA-HE/archive/2012/05/03/377226.html-274C-274CWed, 02 May 2012 16:10:00 GMThttp://www.dentisthealthcenter.com/JAVA-HE/archive/2012/05/03/377226.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/comments/377226.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/archive/2012/05/03/377226.html#Feedback1http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/377226.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/377226.htmlos.listdir(dirname)Q列出dirname下的目录和文?
os.getcwd()Q获得当前工作目?
os.curdir:q回但前目录Q?.')
os.chdir(dirname):改变工作目录到dirname
os.path.isdir(name):判断name是不是一个目录,name不是目录p回false
os.path.isfile(name):判断name是不是一个文Ӟ不存在name也返回false
os.path.exists(name):判断是否存在文g或目录name
os.path.getsize(name):获得文g大小Q如果name是目录返?L
os.path.abspath(name):获得l对路径
os.path.normpath(path):规范path字符串Ş?
os.path.split(name):分割文g名与目录Q事实上Q如果你完全使用目录Q它也会最后一个目录作为文件名而分,同时它不会判断文件或目录是否存在Q?
  阅读全文

-274C 2012-05-03 00:10 发表评论
]]>
在MAC下安装python crypto 模块http://www.dentisthealthcenter.com/JAVA-HE/archive/2012/04/29/377030.html-274C-274CSun, 29 Apr 2012 09:15:00 GMThttp://www.dentisthealthcenter.com/JAVA-HE/archive/2012/04/29/377030.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/comments/377030.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/archive/2012/04/29/377030.html#Feedback1http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/377030.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/377030.html
在网上找Q好不容易在 https://www.dlitz.net/software/pycrypto/ 在这里找C安装包文Ӟpycrypto-2.5.tar.gz
好解压羃Q然后进入到当前的目录中Q发现有setup.py Q执行:python setup.py install l果在最后环节提C出问题了。没权限建立目录Q于是切换到root 下,再操作,O了?br />

-274C 2012-04-29 17:15 发表评论
]]>
python sys模块常用的功?/title><link>http://www.dentisthealthcenter.com/JAVA-HE/archive/2012/04/29/377029.html</link><dc:creator>-274C</dc:creator><author>-274C</author><pubDate>Sun, 29 Apr 2012 08:40:00 GMT</pubDate><guid>http://www.dentisthealthcenter.com/JAVA-HE/archive/2012/04/29/377029.html</guid><wfw:comment>http://www.dentisthealthcenter.com/JAVA-HE/comments/377029.html</wfw:comment><comments>http://www.dentisthealthcenter.com/JAVA-HE/archive/2012/04/29/377029.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/377029.html</wfw:commentRss><trackback:ping>http://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/377029.html</trackback:ping><description><![CDATA[<p>python - sys备忘Q?/p>    1.sys.<span style="color: #555555; font-family: 宋体, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; "> argv[]<br /></span>  eg: python test.py a1 a2<br />    argv[0] 为test.py<br /><br />    2.sys.<span style="font-family: 宋体, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; "> platform</span>    <br />可以判断是具体什么操作系l^台?   <br /><br />    3.sys.<span style="font-family: 宋体, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; "> exit(n)</span>    <br /><br />0 是正帔R出,其他都是异常退出,可以捕获?br />os.abort() 可以强制退出?br /><br />    4.sys.<span style="color: #555555; font-family: 宋体, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; "> path<br />在import 特定路径的模块时候:</span><p class="p1"><span class="s1">import</span>   sys; </p> <p class="p1">sys.path.append( <span class="s2">"./../"</span>)</p><img src ="http://www.dentisthealthcenter.com/JAVA-HE/aggbug/377029.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.dentisthealthcenter.com/JAVA-HE/" target="_blank">-274C</a> 2012-04-29 16:40 <a href="http://www.dentisthealthcenter.com/JAVA-HE/archive/2012/04/29/377029.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>PHP GZIP压羃以及~冲输出W记http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366366.html-274C-274CWed, 14 Dec 2011 10:01:00 GMThttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366366.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/comments/366366.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366366.html#Feedback0http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/366366.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/366366.html阅读全文

-274C 2011-12-14 18:01 发表评论
]]>
Nginx与Apache的Rewrite规则的区?/title><link>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366361.html</link><dc:creator>-274C</dc:creator><author>-274C</author><pubDate>Wed, 14 Dec 2011 09:35:00 GMT</pubDate><guid>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366361.html</guid><wfw:comment>http://www.dentisthealthcenter.com/JAVA-HE/comments/366361.html</wfw:comment><comments>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366361.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/366361.html</wfw:commentRss><trackback:ping>http://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/366361.html</trackback:ping><description><![CDATA[     摘要: 在apache、nginx里经怼用到url重写Q可是这两套重写规则是有区别的,你是否也没有特别清楚呢?  <a href='http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366361.html'>阅读全文</a><img src ="http://www.dentisthealthcenter.com/JAVA-HE/aggbug/366361.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.dentisthealthcenter.com/JAVA-HE/" target="_blank">-274C</a> 2011-12-14 17:35 <a href="http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366361.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Nginx 一些常用的 URL 重写Ҏhttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366360.html-274C-274CWed, 14 Dec 2011 09:31:00 GMThttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366360.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/comments/366360.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366360.html#Feedback0http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/366360.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/366360.html阅读全文

-274C 2011-12-14 17:31 发表评论
]]>
Nginx 开启GZIP压羃http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366356.html-274C-274CWed, 14 Dec 2011 09:21:00 GMThttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366356.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/comments/366356.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366356.html#Feedback0http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/366356.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/366356.html阅读全文

-274C 2011-12-14 17:21 发表评论
]]>
一则MAC下PHP调试器问题小?/title><link>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366354.html</link><dc:creator>-274C</dc:creator><author>-274C</author><pubDate>Wed, 14 Dec 2011 09:07:00 GMT</pubDate><guid>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366354.html</guid><wfw:comment>http://www.dentisthealthcenter.com/JAVA-HE/comments/366354.html</wfw:comment><comments>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366354.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/366354.html</wfw:commentRss><trackback:ping>http://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/366354.html</trackback:ping><description><![CDATA[     摘要: ׃U上的一个hosts ?开发测试环境中的有冲突Q于是我本地开发的目的hosts 改了。后来一直出C个问题,调试的时候,挂不上x-debug?nbsp; <a href='http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366354.html'>阅读全文</a><img src ="http://www.dentisthealthcenter.com/JAVA-HE/aggbug/366354.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.dentisthealthcenter.com/JAVA-HE/" target="_blank">-274C</a> 2011-12-14 17:07 <a href="http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/14/366354.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>IP地址获取当前地理位置接口http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365247.html-274C-274CWed, 30 Nov 2011 17:08:00 GMThttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365247.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/comments/365247.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365247.html#Feedback2http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/365247.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/365247.html  阅读全文

-274C 2011-12-01 01:08 发表评论
]]>
wget 下蝲文g重进行命?/title><link>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365246.html</link><dc:creator>-274C</dc:creator><author>-274C</author><pubDate>Wed, 30 Nov 2011 16:54:00 GMT</pubDate><guid>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365246.html</guid><wfw:comment>http://www.dentisthealthcenter.com/JAVA-HE/comments/365246.html</wfw:comment><comments>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365246.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/365246.html</wfw:commentRss><trackback:ping>http://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/365246.html</trackback:ping><description><![CDATA[     摘要: wget在下载的时候就重命名的: <br> <br>wget -c "www.baidu.com" -O baidu.index.html <br> <br>保存输出日至Q可以? <br> <br>wget -c "www.baidu.com" -O baidu.index.html -o wget.log <br> <br>注意Q? W一“O”ؓ大写的oQ?<br> W二个“o?为小写的o <br>================================ <br>-c : 支持断点l传  <a href='http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365246.html'>阅读全文</a><img src ="http://www.dentisthealthcenter.com/JAVA-HE/aggbug/365246.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.dentisthealthcenter.com/JAVA-HE/" target="_blank">-274C</a> 2011-12-01 00:54 <a href="http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365246.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CENTOS 讄iptables 防火墙规?/title><link>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365245.html</link><dc:creator>-274C</dc:creator><author>-274C</author><pubDate>Wed, 30 Nov 2011 16:45:00 GMT</pubDate><guid>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365245.html</guid><wfw:comment>http://www.dentisthealthcenter.com/JAVA-HE/comments/365245.html</wfw:comment><comments>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365245.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/365245.html</wfw:commentRss><trackback:ping>http://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/365245.html</trackback:ping><description><![CDATA[     摘要: 上次安装完lnmp{环境遇到过一切都装好了,最后浏览器讉K不了。最后才知道是iptables的原因?nbsp; <a href='http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365245.html'>阅读全文</a><img src ="http://www.dentisthealthcenter.com/JAVA-HE/aggbug/365245.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.dentisthealthcenter.com/JAVA-HE/" target="_blank">-274C</a> 2011-12-01 00:45 <a href="http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365245.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]yum配置与?/title><link>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365243.html</link><dc:creator>-274C</dc:creator><author>-274C</author><pubDate>Wed, 30 Nov 2011 16:31:00 GMT</pubDate><guid>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365243.html</guid><wfw:comment>http://www.dentisthealthcenter.com/JAVA-HE/comments/365243.html</wfw:comment><comments>http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365243.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/365243.html</wfw:commentRss><trackback:ping>http://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/365243.html</trackback:ping><description><![CDATA[     摘要: yum的配|一般有两种方式Q一U是直接配置/etc目录下的yum.conf文gQ另外一U是?etc/yum.repos.d目录下增?repo文g?nbsp; <a href='http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365243.html'>阅读全文</a><img src ="http://www.dentisthealthcenter.com/JAVA-HE/aggbug/365243.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.dentisthealthcenter.com/JAVA-HE/" target="_blank">-274C</a> 2011-12-01 00:31 <a href="http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/12/01/365243.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]discuz l典php加密解密函数 authcode 解析http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/11/30/365240.html-274C-274CWed, 30 Nov 2011 14:57:00 GMThttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/11/30/365240.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/comments/365240.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/11/30/365240.html#Feedback1http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/365240.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/365240.html原理如下Q假如:
加密
明文Q?010 1001
密匙Q?110 0011
密文Q?100 1010   阅读全文

-274C 2011-11-30 22:57 发表评论
]]>
UChome PHP模板引擎http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/11/28/365066.html-274C-274CMon, 28 Nov 2011 15:20:00 GMThttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/11/28/365066.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/comments/365066.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/11/28/365066.html#Feedback0http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/365066.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/365066.html  阅读全文

-274C 2011-11-28 23:20 发表评论
]]>
MAC ?netbeans xdebug 调试PHP代码http://www.dentisthealthcenter.com/JAVA-HE/archive/2011/11/23/364676.html-274C-274CWed, 23 Nov 2011 15:12:00 GMThttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/11/23/364676.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/comments/364676.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/archive/2011/11/23/364676.html#Feedback0http://www.dentisthealthcenter.com/JAVA-HE/comments/commentRss/364676.htmlhttp://www.dentisthealthcenter.com/JAVA-HE/services/trackbacks/364676.html阅读全文

-274C 2011-11-23 23:12 发表评论
]]>
久久一级片
<noframes id="395jp"><noframes id="395jp"><video id="395jp"><video id="395jp"></video></video>
<i id="395jp"><font id="395jp"><delect id="395jp"></delect></font></i>
<nobr id="395jp"></nobr><noframes id="395jp"><noframes id="395jp"><dl id="395jp"></dl><video id="395jp"></video><noframes id="395jp"><dl id="395jp"></dl>
<video id="395jp"><video id="395jp"><dl id="395jp"></dl></video></video> <nobr id="395jp"><nobr id="395jp"><meter id="395jp"></meter></nobr></nobr>
<video id="395jp"></video><nobr id="395jp"></nobr>
<video id="395jp"></video>