随笔分类 -  python

摘要:转自:https://blog.csdn.net/weixin_41003801/article/details/79793037?utm_source=copy 知道unittest单元测试框架的朋友应该都知道, 执行继承了unittest.TestCase的类下每个test开头的方法(就是用例) 阅读全文
posted @ 2021-04-24 09:20 amim 阅读(181) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.imooc.com/article/257230 一、什么是unittest unittest是Python单元测试框架,类似于JUnit框架。 unittest中有4个重要的概念:test fixture, test case, test suite, test run 阅读全文
posted @ 2021-04-24 09:14 amim 阅读(320) 评论(0) 推荐(0) 编辑
摘要:if __name__ == '__main__' 当.py文件被直接运行时,if __name__ == '__main__'之下的代码块将被运行; 当.py文件以模块形式被导入时,if __name__ == '__main__'之下的代码块不被运行 阅读全文
posted @ 2021-04-23 11:43 amim 阅读(47) 评论(0) 推荐(0) 编辑
摘要:一、环境 系统环境:windows 10 教育版 python3.9.4 在使用pip3下载requests时,提示错误,如图 二、解决方法 pip install requests -i http://pypi.douban.com/simple/ --trusted-host pypi.doub 阅读全文
posted @ 2021-04-21 15:47 amim 阅读(2766) 评论(0) 推荐(0) 编辑
摘要:参考链接 http://www.zhidaow.com/post/python-requests-install-and-brief-introduction 1. 安装 下载安装包地址:https://github.com/requests/requests.git 下载完成后解压到python的 阅读全文
posted @ 2018-07-12 11:15 amim 阅读(7449) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示