摘要: # 添加字典# d = {## 95: 'Adam',## 85: 'Lisa',## 59: 'Bart'## }# # d[55]='jack'# print (d[95])# 获取key 合值# d = {# 'Adam': 95,# 'Lisa': 85,# 'Bart': 59# }# f 阅读全文
posted @ 2018-08-06 23:27 mahaining 阅读(206) 评论(0) 推荐(0) 编辑
摘要: # 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... 阅读全文
posted @ 2018-08-06 23:25 mahaining 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 常规列表去重的两种方法 第一种: 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, 阅读全文
posted @ 2018-08-06 23:19 mahaining 阅读(134) 评论(0) 推荐(0) 编辑
摘要: activity_main.xml 文件 阅读全文
posted @ 2016-07-12 14:28 mahaining 阅读(187) 评论(0) 推荐(0) 编辑