上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
  2019年12月11日
摘要: 阅读全文
posted @ 2019-12-11 17:47 wenjingtester 阅读(86) 评论(0) 推荐(0) 编辑
摘要: list = [0] 全局 globedef Est1(): list = [1] 闭包 enclose def Est2(): list = [2] 局部 local print (list) Est2() Est1() d 阅读全文
posted @ 2019-12-11 15:25 wenjingtester 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 链接地址:http://www.sohu.com/a/296021266_505800 一.HTTP简介 1.HTTP协议,即超文本传输协议(Hypertext transfer protocol)。是一种详细规定了浏览器和万维网(WWW = World Wide Web)服务器之间互相通信的规则, 阅读全文
posted @ 2019-12-11 14:09 wenjingtester 阅读(200) 评论(0) 推荐(0) 编辑
  2019年12月6日
摘要: 链接:https://www.cnblogs.com/luyuze95/p/11254514.html 个人心血原创,欢迎转载,请注明作者和出处。否则依法追究法律责任!!!! author:headsen chen date:2018-03-21 10:37:52 讲装饰器,其实装饰器就是一个闭包, 阅读全文
posted @ 2019-12-06 13:52 wenjingtester 阅读(160) 评论(0) 推荐(0) 编辑
  2019年12月5日
摘要: import smtplibfrom email.mime.text import MIMETextimport osdef send_report(report): sender = "000@sfmail.sf-express.com" receiver = "000@sfmail.sf-exp 阅读全文
posted @ 2019-12-05 16:49 wenjingtester 阅读(139) 评论(0) 推荐(0) 编辑
摘要: (1) x = {"fruit": "apple", "color": "yellow", "age": "88"} for v in x.values(): print(v) 创建一个字典,如果要得到值,那么可以用values()来提取。 (2) for k in x.keys(): print( 阅读全文
posted @ 2019-12-05 16:35 wenjingtester 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.cnblogs.com/Owen-ET/p/8610446.html import os def new_file(test_dir): #列举test_dir目录下的所有文件(名),结果以列表形式返回。 lists=os.listdir(test_dir) #sort 阅读全文
posted @ 2019-12-05 16:23 wenjingtester 阅读(1744) 评论(0) 推荐(0) 编辑
摘要: a = [1,5,0,6,7] print (a) a.sort() print (a) 链接:https://jingyan.baidu.com/article/84b4f565a3c44260f7da326e.html 阅读全文
posted @ 2019-12-05 14:24 wenjingtester 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.cnblogs.com/kaishirenshi/p/8611358.html 例1:传入多个参数的lambda函数 def sum(x,y): return x+y 用lambda来实现: p = lambda x,y:x+y print(p(4,6)) 例2:传 阅读全文
posted @ 2019-12-05 14:06 wenjingtester 阅读(1967) 评论(0) 推荐(0) 编辑
  2019年12月4日
摘要: 通过id定位 通过工具获取到按钮的 resource-id driver.find_element_by_id('resource-id') 实例: driver.find_element_by_id(' com.android.bbkcalculator:id/clear') 通过class定位 阅读全文
posted @ 2019-12-04 15:08 wenjingtester 阅读(479) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页