摘要: from datetime import datetime def get_now_time_sign(): """获取当前时间戳""" return int(round(datetime.now().timestamp() * 1000)) if __name__ == '__main__': p 阅读全文
posted @ 2022-03-22 20:56 lwjnicole 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 项目结构: config.ini文件内容: # file_name:config.ini [dev] companyName = dev测试环境 name = lwjnicole [test] companyName = test测试环境 name = lwj [uat] companyName = 阅读全文
posted @ 2022-03-22 20:54 lwjnicole 阅读(361) 评论(0) 推荐(0) 编辑
摘要: import random class PhoneNOGenerator: # 随机生成手机号码 def phoneNORandomGenerator(self): prelist = ["130", "131", "132", "133", "134", "135", "136", "137", 阅读全文
posted @ 2022-03-22 20:48 lwjnicole 阅读(3) 评论(0) 推荐(0) 编辑
摘要: import pymysql class DBUtil: def __init__(self, database): self.db = pymysql.connect(host='XXXXX', port=XXXX, user='XXXX', password="XXXX", database=d 阅读全文
posted @ 2022-03-22 20:39 lwjnicole 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: import hashlib def md5(oragin_str): """md5加密""" m = hashlib.md5() b = oragin_str.encode(encoding='utf-8') m.update(b) return m.hexdigest() 阅读全文
posted @ 2022-03-22 20:37 lwjnicole 阅读(34) 评论(0) 推荐(0) 编辑