work hard work smart

专注于Java后端开发。 不断总结,举一反三。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年6月19日

摘要: 1、下载HTMLTestRunner 这里已经下载好的文件HTMLTestRunner.py """ A TestRunner for use with the Python unit testing framework. It generates a HTML report to show the 阅读全文

posted @ 2021-06-19 18:50 work hard work smart 阅读(73) 评论(0) 推荐(0) 编辑

摘要: 1、Python单元测试的使用 单元测试代码如下: #coding:utf-8 import unittest class TestMethod(unittest.TestCase): @classmethod def setUpClass(cls): print("类执行之前的方法") @clas 阅读全文

posted @ 2021-06-19 16:58 work hard work smart 阅读(95) 评论(0) 推荐(0) 编辑

摘要: 1、requests安装 pip install requests import requests 如果没有报错,说明requests安装成功了。 3、创建Python工程 使用Idea,安装Python插件 创建工程,选择Python,工程名称为pythondemon 在工程名称上右键,点击New 阅读全文

posted @ 2021-06-19 14:57 work hard work smart 阅读(115) 评论(0) 推荐(0) 编辑