会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
whcp
人生苦短、python是岸
博客园
管理
2020年6月24日
unittest
摘要: 1、用一段代码测试另一段代码,基本写法; import unittest from unittest import TestCase #写一个待测函数 def add(a,b): return a+b class AddTest(unittest.TestCase): #继承 def test_ad
阅读全文
posted @ 2020-06-24 16:22 whcp
阅读(148)
评论(0)
推荐(0)
公告