- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 Python中join()方法的Java实现
Python中join()方法可以便捷的实现字符串的拼接,例如chars = ['S', 'a', 'f', 'e']print( ','.join(chars)) #output : S,a,f,e但今天尝试Java的字符串按照上面的格式输出,程式改来改去都觉得不是很满意,索性去看了JDK关于数组打印的源代码:public static String toString(O
2014-02-24 00:53:33
3047
原创 64-bit win7系统使用devcon.exe批量删除多余的网络适配器的注意要点
Preface1.卸载“6to4”类型网络适配器适配器的目的见:http://hi.baidu.com/oysterliu/item/59ea0ee397d527f52a09a4fb2.微软官网提供的devcon.exe工具对64-bit win7系统并不支持。我个人从最新的WDK工具中抽取出一个64-bit win7系统有效的devcon,上传到百度云中,地址:http://pan.
2014-01-22 14:38:08
6049
原创 Python2.7.3读取日志信息时发生读取不完整的问题
1、问题:File reading problemOS environment : windows 7Python version:2.7.3 今天在使用Python以文本方式读取一份日志文档时,发生了怪异的问题,26464行的日志文档,程序始终只能读出1980行。尝试io.open方式,加上参数encoding='utf-8'问题依旧。# certificatio
2013-12-30 13:33:19
2091
原创 Python中Boolean operator的一些特点
今天在网站上学习Learn Python The Hard Way,Exercise 28(http://learnpythonthehardway.org/book/ex28.html)时,[Common Student Questions] 有个问题引起了我的兴趣:Why does "test" and "test" return "test" or 1 and 1 return 1
2013-11-28 20:49:53
1634
原创 GAE发生在OS X上socket.error: [Errno 48] Address already in use 问题的解决方法
Case 1. 普通用户使用python proxy.py启动GAE:lsof -i:8087 获得监听8087端口的进程PIDkill XXX (XXX为PID)Case 2. 由于密钥问题使用root用户(sudo python proxy.py)启动GAE:sudo lsof -i:8087sudo kill XXX此种情况下若使用Case
2013-11-27 23:48:37
4394
Wireshark-win64-1.10.3.exe
2013-11-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人