上一页 1 ··· 203 204 205 206 207 208 209 210 211 ··· 430 下一页

2013年7月23日

python 教程 第八章、 第一个python程序

摘要: 第八章、 第一个python程序 #!/usr/bin/env python import os import sys import time source = [r'G:\s1', r'G:\s2'] target_dir = r'G:\d' + os.sep today =... 阅读全文

posted @ 2013-07-23 17:03 岚之山 阅读(79) 评论(0) 推荐(0)

python 教程 第七章、 数据结构

摘要: Python中有三种内建的数据结构——列表、元组和字典。 1) Lists列表 [,] 列表是序列的一种 shoplist = ['apple', 'carrot', 'banana'] print shoplist #['apple', 'carrot', 'banana'] sho... 阅读全文

posted @ 2013-07-23 17:03 岚之山 阅读(200) 评论(0) 推荐(0)

python 教程 第二十章、 数据库编程

摘要: 第二十章、 数据库编程 环境设置 1).安装MySQL-python http://www.lfd.uci.edu/~gohlke/pythonlibs/ MySQL-python-1.2.3.win32-py2.7.exe 1) 使用数据库接口 import MySQLdb cxn... 阅读全文

posted @ 2013-07-23 17:03 岚之山 阅读(162) 评论(0) 推荐(0)

python 教程 第十六章、 正则表达式

摘要: 第十六章、 正则表达式 1) 匹配多个表达式 记号 re1|re2 说明 匹配正则表达式re1或re2 举例 foo|bar 匹配 foo, bar 记号 {N} 说明 匹配前面出现的正则表达式N 举例 [0-9]{3} 匹配 2) 匹配单个/多个/范围内字符 记... 阅读全文

posted @ 2013-07-23 17:03 岚之山 阅读(145) 评论(0) 推荐(0)

python 教程 第十五章、 结构布局

摘要: 第十五章、 结构布局 #!/usr/bin/env python #(1)起始行 "this is a module" #(2)模块文档 import sys #(3)模块导入 debug = True ... 阅读全文

posted @ 2013-07-23 17:03 岚之山 阅读(86) 评论(0) 推荐(0)

python 教程 第十四章、 地址薄作业

摘要: 第十四章、 地址薄作业 #A Byte of Python #!/usr/bin/env python import cPickle import os #define the contacts file, list global file_contacts global list_conta... 阅读全文

posted @ 2013-07-23 17:03 岚之山 阅读(84) 评论(0) 推荐(0)

SecureCRT下载/注册/安装镜像文件

摘要: #$language = "VBScript" #$interface = "1.0" ' This automatically generated script may need to be ' edited in order to work correctly. Dim FTP_IP, ... 阅读全文

posted @ 2013-07-23 17:03 岚之山 阅读(179) 评论(0) 推荐(0)

SecureCRT循环检查设备状态

摘要: 1: #$language = "VBScript" 2: #$interface = "1.0" 3: 4: ' This automatically generated script may need to be 5: ' edited in order to w... 阅读全文

posted @ 2013-07-23 17:03 岚之山 阅读(205) 评论(0) 推荐(0)

SecureCRT自动登录Linux并设置时间

摘要: #$language = "VBScript" #$interface = "1.0" crt.Screen.Synchronous = True ' This automatically generated script may need to be ' edited in order t... 阅读全文

posted @ 2013-07-23 17:03 岚之山 阅读(202) 评论(0) 推荐(0)

python 教程 第十三章、 特殊的方法

摘要: 第十三章、 特殊的方法 1) 特殊的方法 __init__(self,...) 这个方法在新建对象恰好要被返回使用之前被调用。 __del__(self) 恰好在对象要被删除之前调用。 __str__(self) 在我们对对象使用print语句或是使用str()的时候调用。 __lt__(s... 阅读全文

posted @ 2013-07-23 17:03 岚之山 阅读(102) 评论(0) 推荐(0)

上一页 1 ··· 203 204 205 206 207 208 209 210 211 ··· 430 下一页

导航