摘要: #coding:utf-8#一般式mylist = [x for x in range(1,10,2)]print(mylist)#一般+判断mylist = [x for x in range(1,10) if x<5]print(mylist)#数学复杂mylist = [x*x for x i 阅读全文
posted @ 2021-04-07 21:05 cmlaiweno 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 循环字典的方法:mydict = {'a':1,'b':3}for key in mydict.keys(): print(key)for key in mydict.items(): print(key)for key in mydict: print(key,mydict[key]) 阅读全文
posted @ 2021-03-26 11:20 cmlaiweno 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8import osimport timenum=0while True: time.sleep(1) print(f"第{num}秒") num+=1 if num==5: os.system("start notepad") if num==10: os.system(" 阅读全文
posted @ 2021-03-18 11:13 cmlaiweno 阅读(30) 评论(0) 推荐(0) 编辑
摘要: #coding:utffor i in range(0,100,2): print(f"{i}")#for i in range(100) : 循环100次,i取0到99#for i in range(0,100,2) : 取值[0,98),每次步长为2#range(min,max,step) 不包 阅读全文
posted @ 2021-03-18 10:35 cmlaiweno 阅读(77) 评论(0) 推荐(0) 编辑
摘要: num1=3num2=3print(id(num1),id(num2))#变量赋值的是地址num1=10print(id(num1),id(num2)) 阅读全文
posted @ 2021-03-12 17:31 cmlaiweno 阅读(124) 评论(0) 推荐(0) 编辑
摘要: pycharm设置: 阅读全文
posted @ 2021-03-12 11:13 cmlaiweno 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/clschao/articles/9230431.html http详细流程讲解:https://www.bilibili.com/video/BV1By4y1S7Cp?p=5 阅读全文
posted @ 2021-02-19 10:57 cmlaiweno 阅读(46) 评论(0) 推荐(0) 编辑
摘要: http://blog.sina.com.cn/s/blog_654c6ec70101044p.html selneium库: https://github.com/robotframework/Selenium2Library RF: https://my.oschina.net/xxjbs001 阅读全文
posted @ 2017-07-17 23:16 cmlaiweno 阅读(119) 评论(0) 推荐(0) 编辑
摘要: RF有很多标准库,但是有时候想用某个关键字的时候发现联想不出来,原因是还需要再导入一次,且导入的时候不能带library否则会失败 阅读全文
posted @ 2017-07-05 11:11 cmlaiweno 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.tuicool.com/articles/vIZZby7 注意这个例子里面需要先安装以下: 否则无法访问网站 get和get request的区别看描述get request多一个传参json,不宜用用get requests 的5中methord用法: 阅读全文
posted @ 2017-07-05 11:09 cmlaiweno 阅读(177) 评论(0) 推荐(0) 编辑