上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 一、项目的urls文件 from django.contrib import admin from django.urls import path,include from django.conf import settings from django.conf.urls.static import 阅读全文
posted @ 2022-09-08 22:17 zwx901323 阅读(299) 评论(0) 推荐(0)
摘要: #django文档:https://docs.djangoproject.com/en/4.1/howto/static-files/ 阅读全文
posted @ 2022-08-31 23:03 zwx901323 阅读(24) 评论(0) 推荐(0)
摘要: python -m venv env .\env\Scripts\activate 阅读全文
posted @ 2022-08-31 22:25 zwx901323 阅读(23) 评论(0) 推荐(0)
摘要: 1. 创建django程序 终端命令:django-admin startproject sitename (在当前目录下创建一个Django程序) IDE创建Django程序时,本质上都是自动执行上述命令 其他常用命令: python manage.py runserver ip:port (启动 阅读全文
posted @ 2022-08-29 22:35 zwx901323 阅读(101) 评论(0) 推荐(0)
摘要: 一、unittest与HTMLtestrunner生成带日志的测试报告 下载项目 https://github.com/huilansame/htmltestRunner_PY3 #gthub项目地址 项目解析说明 import unittest from HTMLTestRunner_PY3 im 阅读全文
posted @ 2022-08-21 17:07 zwx901323 阅读(55) 评论(0) 推荐(0)
摘要: 一、基础演示 import unittest class TestClass(unittest.TestCase): @classmethod def setUpClass(cls) -> None: print("类开始方法") @classmethod def tearDownClass(cls 阅读全文
posted @ 2022-08-19 08:40 zwx901323 阅读(30) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-08-19 07:53 zwx901323 阅读(29) 评论(0) 推荐(0)
摘要: 一、语句覆盖:基础覆盖 二、判断覆盖: 三、条件覆盖:最常用的方法 四、路径覆盖: 阅读全文
posted @ 2022-08-19 07:51 zwx901323 阅读(80) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-08-19 07:43 zwx901323 阅读(7) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/Avicii2018/p/16391336.html 问题描述:写好test.py文件和pytest.ini文件后,报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xb0 1.选择pytest 阅读全文
posted @ 2022-08-14 12:38 zwx901323 阅读(63) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页