Python
marble_wang
这个作者很懒,什么都没留下…
展开
-
Python 笔记
1、Interpreter 解释器的概念An interpreter is a kind of program that executes other programs. When you write a Python program, the Python interpreter reads your program and carries out the instructions it cont原创 2017-03-20 15:44:41 · 206 阅读 · 0 评论 -
Python Bug 整理
1、TypeError: unbound method test() must be called with file_exist instance as first argument (got RequestHttpHandle instance instead)涉及到一个bound的概念class Test: def func(self,message): print m原创 2017-04-10 17:33:01 · 437 阅读 · 0 评论 -
Argparse 模块
argparse是python标准库中推荐的命令解析模块。本文主要针对3.x,3.x对比2.x在异常信息处理上有了一些提升和一些细节上有些不同。注意:还有两个模块和argparse完成相同的功能,getopt(和C语言中的getopt()函数相同)和已经过时的optparse,但是argparse是基于optparse的,所以两者在用法上十分的相似。概念:让我们通过ls命令来介绍接下来将要讨论的a原创 2017-04-17 22:13:57 · 312 阅读 · 0 评论 -
print 的一些使用
Print使用Python中的print使用是一个非常常用的打印符了,看似非常的简单,但是还是有一些地方需要我们进行注意的,print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)print 的对象时一个文本留对象文件,必须给出一个关键字包含文件或字符流,注意所有的非关键字的参数都会被转化为字符串格式进行流输出,而且在最后加上...原创 2018-04-30 19:40:06 · 744 阅读 · 0 评论