摘要:
# 添加字典# d = {## 95: 'Adam',## 85: 'Lisa',## 59: 'Bart'## }# # d[55]='jack'# print (d[95])# 获取key 合值# d = {# 'Adam': 95,# 'Lisa': 85,# 'Bart': 59# }# f 阅读全文
摘要:
# coding:utf-8 """ Compatible for python2.x and python3.x requirement: pip install requests """ import requests # 请求示例 url 默认请求参数已经做URL编码 from httprunner import response import unittest class Case(un... 阅读全文
摘要:
常规列表去重的两种方法 第一种: list=[1,2,2,2,2,3,4,5,5,6,7,8,8,9] list2=[] for a in list: if a not in list2: list2.append(a) print (list2) 第二种: list=[1,2,2,2,2,3,4, 阅读全文