摘要:
阅读全文
posted @ 2018-12-23 23:29
凯撒鸡肉卷
阅读(92)
评论(0)
推荐(0)
摘要:
抽象类:包含抽象方法的类,通常称为ABC类 import abc 使用: 1.可以包含抽象方法,也可以包含具体方法 2.可以有方法也可以有属性 3.不允许直接实例化 4.必须继承才可以使用,且继承的子类必须实现所有继承来的抽象方法 5.假定子类没有实现所有继承的抽象方法,则子类也不能实例化 6.抽象 阅读全文
posted @ 2018-12-23 23:28
凯撒鸡肉卷
阅读(134)
评论(0)
推荐(0)
摘要:
原文地址:https://blog.csdn.net/huilan_same/article/details/52944782 unittest是xUnit系列框架中的一员,如果你了解xUnit的其他成员,那你用unittest来应该是很轻松的,它们的工作方式都差不多。 unittest核心工作原理 阅读全文
posted @ 2018-12-23 23:26
凯撒鸡肉卷
阅读(121)
评论(0)
推荐(0)
摘要:
转自IBM开发者社区。 使用pdb进行调试: pdb 是 python 自带的一个包,为 python 程序提供了一种交互的源代码调试功能,主要特性包括设置断点、单步调试、进入函数调试、查看当前代码、查看栈片段、动态改变变量的值等。pdb 提供了一些常用的调试命令,详情见表 1。 表 1. pdb 阅读全文
posted @ 2018-12-23 23:22
凯撒鸡肉卷
阅读(9968)
评论(0)
推荐(1)
摘要:
阅读全文
posted @ 2018-12-23 23:09
凯撒鸡肉卷
阅读(118)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2018-12-23 20:55
凯撒鸡肉卷
阅读(152)
评论(0)
推荐(0)
摘要:
import shutil#copy()复制文件#格式: shutil.copy(来源路径,目标路径)#返回值:返回目标路径#拷贝的同时,可以给文件重命名rst = shutil.copy('/home/dadada/hahaha.huhu', '/home/dadada/hahaha.hoho') 阅读全文
posted @ 2018-12-23 18:23
凯撒鸡肉卷
阅读(155)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2018-12-23 15:34
凯撒鸡肉卷
阅读(72)
评论(0)
推荐(0)
摘要:
原文地址:https://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0003nk Slopegraphs for comparing gradients: Slopegraph theory and practice Slopegraph 阅读全文
posted @ 2018-12-23 02:39
凯撒鸡肉卷
阅读(326)
评论(0)
推荐(0)
浙公网安备 33010602011771号