摘要: 阅读全文
posted @ 2014-04-07 10:53 zhangbo2012 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 6. Modules If you quit from the Python interpreter and enter it again, the definitions you have made (functions and variables) are lost. Therefore, if you want to write a somewhat longer program, you... 阅读全文
posted @ 2014-04-05 20:24 zhangbo2012 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 5. Data Structures This chapter describes some things you’ve learned about already in more detail, and adds some new things as well. 5.1. More on Lists The list data type has some more methods. Here a... 阅读全文
posted @ 2014-04-02 22:25 zhangbo2012 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 4. More Control Flow Tools Besides the while statement just introduced, Python knows the usual control flow statements known from other languages, with some twists. 4.1. if Statements Perhaps the mo... 阅读全文
posted @ 2014-04-02 14:58 zhangbo2012 阅读(214) 评论(0) 推荐(0) 编辑
摘要: lambda函数和and - or技巧的使用 当collapse为true时,返回" ".join(s.split()),而当collapse为false时,则返回s processFunc = collapse and (lambda s: " ".join(s.split())) or (lambda s: s)这个函数主要着重于简单的模糊处理和默认参数处理def ask_ok(prompt... 阅读全文
posted @ 2014-04-02 14:48 zhangbo2012 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: if __name__=='__main__' 的原理说明 阅读全文
posted @ 2014-04-01 21:31 zhangbo2012 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 测试三种遍历列表方法的性能 阅读全文
posted @ 2014-04-01 17:19 zhangbo2012 阅读(1184) 评论(0) 推荐(0) 编辑
摘要: python的一些基础知识和语法学习笔记 阅读全文
posted @ 2014-03-31 20:42 zhangbo2012 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 以下原创信息来自http://www.cnblogs.com/zhangbo2012,转载请注明出处 '注册服务,常用于注册第三方dll组件Function setup() dllpath = GetSelfPath & "dll\msxml.dll" wsh.run "regsvr32 " & dllpath & " /s" Wscript.sleep 1000End fun... 阅读全文
posted @ 2014-03-10 20:55 zhangbo2012 阅读(353) 评论(0) 推荐(0) 编辑
摘要: lrzsz工具是可以实现在SecureCRT中快速向linux服务器快速上传和下载文件, 安装方法 1、 REDHAT下可以通过yum进行安装 root@MyVPS download]# yum list | grep lrzszlrzsz.i386 0.12.20-22.1 base[root@MyVP... 阅读全文
posted @ 2014-03-10 20:25 zhangbo2012 阅读(613) 评论(0) 推荐(0) 编辑