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

2013年7月23日

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 岚之山 阅读(202) 评论(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 岚之山 阅读(201) 评论(0) 推荐(0)

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

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

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

python 教程 第十二章、 标准库

摘要: 第十二章、 标准库 See Python Manuals ? The Python Standard Library ? 1) sys模块 import sys if len(sys.argv) >> import decimal # Decimal... 阅读全文

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

python 教程 第十一章、 异常

摘要: 第十一章、 异常 1) try/except/else格式 try: s = raw_input('--> ') except EOFError: print 'Why did you do an EOF on me?' except: print 'Er... 阅读全文

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

python 教程 第十章、 输入/输出

摘要: 第十章、 输入/输出 1) 文件 poem = '''Programming is fun use Python!''' f = file('poem.txt', 'w') # open for 'w'riting f.write(poem) # write text to file ... 阅读全文

posted @ 2013-07-23 17:03 岚之山 阅读(125) 评论(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 岚之山 阅读(82) 评论(0) 推荐(0)

python 教程 第九章、 类与面向对象

摘要: 第九章、 类与面向对象 1) 类 基本类/超类/父类被导出类或子类继承。 Inheritance继承 Inheritance is based on attribute lookup in Python (in X.name expressions). Polymorphism多态 In X... 阅读全文

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

python 教程 第七章、 数据结构

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

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

python 教程 第六章、 模块

摘要: 第六章、 模块 1) 模块 sys模块 字节编译的.pyc文件,优化编译后生成pyo文件 2) from..import语句 import sys print 'The command line arguments are:' for i in sys.argv: print i ... 阅读全文

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

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

导航