小肥羊要进步

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页

2021年1月7日

python14集合和类初识

摘要: 集合set,可以列表,字母元素,字符串,元组元素都可以转化为集合,可以去重 >>> set([1,2,3]){1, 2, 3}>>> set("abc"){'b', 'c', 'a'}>>> set((1,2,3)){1, 2, 3}>>> s=set("abcdacds")>>> s{'s', ' 阅读全文

posted @ 2021-01-07 23:04 小肥羊要进步 阅读(132) 评论(0) 推荐(0) 编辑

2021年1月6日

Python 自动化获取酒店搜索信息

摘要: 使用python 自动化获取酒店的价格,评分 和 酒店名字 使用到了: selenium webdriver 文件写作操作 遍历 range(len(list)) 等待时间(我这里等待时间写的不好,代码需要优化的很多,应该用webdriverwait,我是用的是隐式等待和强制等待) 脚本如下 #导入 阅读全文

posted @ 2021-01-06 22:21 小肥羊要进步 阅读(221) 评论(0) 推荐(0) 编辑

2021年1月3日

python013-import

摘要: >>> import os>>> os.getcwd() #获取当前路径'd:\\'>>> os.chdir("d:\\") #跳转到想要的路径>>> os.getcwd<built-in function getcwd>>>> os.getcwd()'d:\\'>>>引入自己定义的包 在D盘创建一 阅读全文

posted @ 2021-01-03 23:00 小肥羊要进步 阅读(119) 评论(0) 推荐(0) 编辑

2020年12月31日

发布更新最新代码的2个方法

摘要: 代码分为core,API,web, 文件夹fetch-Tortoise ,记得勾选rebase core 和APi 我一直在visual studio2019上打开对应的sln文件去rebuild solution Web 就是powershell去grunt debug /grunt build 阅读全文

posted @ 2020-12-31 11:31 小肥羊要进步 阅读(250) 评论(0) 推荐(0) 编辑

2020年12月30日

另外部署一个分支web端

摘要: 1,目前本地部署的测试环境 达蒙有个挺大的需求需要在分支上测试,同时也需要在主分支测试其他的需求,来回切换switch不同分支发布很不方便 于是创建一个新的环境专门测试16730 添加一个这个 IIS里添加一个application 以后登录页面直接就可以 http://192.168.8.226/ 阅读全文

posted @ 2020-12-30 10:17 小肥羊要进步 阅读(86) 评论(0) 推荐(0) 编辑

2020年12月29日

python12文件的读写

摘要: #1.读本地文件,ANSI为GBK编码 p=open("e:\\a.txt") content=fp.read() print(content) fp.close() #2.读 fp=open("e:\\a.txt","r",encoding="gbk") fp.readlines() fp.clo 阅读全文

posted @ 2020-12-29 22:55 小肥羊要进步 阅读(148) 评论(0) 推荐(0) 编辑

UNC 测试

摘要: 今天有个测试需求如下: able to keep file on a shared network location so they can be accessed from any server 目前现状: A UNC path can be entered through the CLI but 阅读全文

posted @ 2020-12-29 16:01 小肥羊要进步 阅读(128) 评论(0) 推荐(0) 编辑

2020年12月27日

python011

摘要: class MikeError(Excepton):pass print(1) try: #将可能出现错误的代码放在try if value=="type":,try 和except要同时出现,或者finally: raise TypeError if value=="zero": raise Ze 阅读全文

posted @ 2020-12-27 23:05 小肥羊要进步 阅读(76) 评论(0) 推荐(0) 编辑

2020年12月23日

python10常用字符串

摘要: >>> s="abc">>> type(s)<class 'str'>>>> s=u"abc">>> type(s)<class 'str'>>>> s=b"abc">>> type(s)<class 'bytes'>>>> s="abc">>> d="abc">& 阅读全文

posted @ 2020-12-23 23:28 小肥羊要进步 阅读(288) 评论(0) 推荐(0) 编辑

浏览器清除缓存

摘要: 引发的缘由: 1.网站一直无法登录或者报错 2.测试环境新发布代码测试 清除浏览器缓存类的 1.F12 2.Ctrl+F5 3. 阅读全文

posted @ 2020-12-23 12:02 小肥羊要进步 阅读(365) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页

导航