2015年10月14日

python实现ConfigParser读取配置文件,telnetlib连接远程服务

摘要: #!/usr/bin/env python#coding:utf8from ConfigParser import ConfigParserimport telnetlibconfig=ConfigParser()config.read('telnet.config')username = conf... 阅读全文

posted @ 2015-10-14 22:40 ferraborghini 阅读(515) 评论(0) 推荐(0) 编辑

2015年10月9日

linux挂载windows共享的远程目录

摘要: 在windows上共享一个文件夹名字是linux在linux运行以下命令mkdir -p /mnt/sharemount -t cifs -o username=“win username”,password=“win password” //“winIP”/linux /mnt/share/mnt... 阅读全文

posted @ 2015-10-09 23:51 ferraborghini 阅读(647) 评论(0) 推荐(0) 编辑

2015年9月28日

python字符编码的一些理解

摘要: #!/usr/bin/env python#coding:utf-8str = '中国'print type(str)print strstr = u'中国'print type(str)print strstr = '中国'.decode('UTF8')print type(str)print s... 阅读全文

posted @ 2015-09-28 23:28 ferraborghini 阅读(295) 评论(0) 推荐(0) 编辑

2015年9月24日

将xml的数据写入swing树形结构

摘要: 先简单的粘贴下代码,正在学习java的东西,正好用到swing,算是做个练习。API太多,还没有梳理太清楚,慢慢回顾。public class TreeFrame extends JFrame { public static final int WIDTH = 1100; public ... 阅读全文

posted @ 2015-09-24 23:54 ferraborghini 阅读(641) 评论(0) 推荐(0) 编辑

导航