随笔分类 - 代码知识点随手写
每天的坚持,会得到对应的回报!!!
摘要:python操作MySQL数据库之前,需要安装pymysql模块,pip命令行安装: pip install pymysql 提示: Collecting pymysql Using cached PyMySQL-0.9.3-py2.py3-none-any.whl (47 kB) Installi
阅读全文
摘要:参考资料: 安装allure:https://www.jianshu.com/p/8c2a696090cd 安装pytest:https://www.jianshu.com/p/8c2a696090cd 配置python virtualenv虚拟环境:https://www.jianshu.com/
阅读全文
摘要:# 创建一个ini文件,存储链接DB的方式 [mbloan-test] host = 1xx.xx.xx.xx port = 3xx2 db = DBName username = username password = password # 创建py文件,编写代码读取ini文件 import os
阅读全文
摘要:1 # coding:utf-8 2 3 import pytest 4 import allure 5 6 7 # 测试函数 8 @allure.step("字符串相加:{0},{1}") # 测试步骤,可通过format机制自动获取函数参数 9 def str_add(str1, str2):
阅读全文
摘要:学习代码不能光死记硬背,先搞清楚编写代码的目的,在进行分析,屡清楚思路,在进行代码的编写(思路最终要)
阅读全文