摘要: import turtle,timedef koch(size,n): if n==0: turtle.fd(size) else: for angle in [0,60,-120,60]: turtle.left(angle) koch(size/3,n-1)def main(): turtle. 阅读全文
posted @ 2019-09-03 22:13 Aluosen 阅读(329) 评论(0) 推荐(0) 编辑
摘要: def hanoi(n,src,dst,mid): global count if n==1: print('{}:{}->{}'.format(1,src,dst)) count+=1 else: hanoi(n-1,src,mid,dst) print('{}:{}->{}'.format(n,src,dst)) count+=1 hanoi(n-1,mid,dst,src)count=0ha 阅读全文
posted @ 2019-09-02 22:38 Aluosen 阅读(800) 评论(0) 推荐(0) 编辑
摘要: import timescale=10print("{:-^18}".format("执行开始"))for i in range(scale+1): a="*"*i b="."*scale scale -= 1 c=i*scale print('{:^3}%[{}->{}]'.format(c,a,b)) time.sleep(0.01)print("{:-^1... 阅读全文
posted @ 2019-08-30 19:43 Aluosen 阅读(373) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-# @Time : 2019/8/25 14:54# @Author : Aluosen# @FileName: PythonDrow.py# @Software: PyCharm# @Cnblogs :https://www.cnblogs.com/youngleesinluosen# @Software: PyCharm #turtle风轮绘制im 阅读全文
posted @ 2019-08-28 23:08 Aluosen 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 前言 在app开放接口api的设计中,避免不了的就是安全性问题,因为大多数接口涉及到用户的个人信息以及一些敏感的数据,所以对这些接口需要进行身份的认证,那么这就需要用户提供一些信息,比如用户名密码等,但是为了安全起见让用户暴露的明文密码次数越少越好,我们一般在web项目中,大多数采用保存的sessi 阅读全文
posted @ 2019-08-21 22:51 Aluosen 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 一、不进行验证的方式 api查询接口: app调用:http://api.test.com/getproducts?参数1=value1....... 如上,这种方式简单粗暴,通过调用getproducts方法即可获取产品列表信息了,但是 这样的方式会存在很严重的安全性问题,没有进行任何的验证,大家 阅读全文
posted @ 2019-08-21 22:45 Aluosen 阅读(1630) 评论(0) 推荐(1) 编辑
摘要: ①:为端到端连接提供传输服务。 ②:这种传输服务分为可靠和不可靠的,其中Tcp是典型的可靠传输,而Udp则是不可靠传输。 ③:为端到端连接提供流量控制,差错控制,服务质量(Quality of Service,QoS)等管理服务。 包括的协议如下: TCP:传输控制协议,传输效率低,可靠性强。 UD 阅读全文
posted @ 2019-08-20 23:07 Aluosen 阅读(1197) 评论(0) 推荐(0) 编辑
摘要: import unittestfrom selenium import webdriverimport HTMLTestRunner class Test(unittest.unitcase): def setUpClass(self): pass def tearDownClass(self): 阅读全文
posted @ 2019-08-20 13:11 Aluosen 阅读(2791) 评论(0) 推荐(0) 编辑
摘要: 1.什么是WebUI自动化测试? 通过代码模拟用户的WEB操作,完成测试用例需要的执行步骤,并验证用户的操作产生的预计结果和过程。 (1) 大型项目多轮测试代替人工验证 (2) 方针或是线上回归测试(定时执行,触发执行,防止人工执行测试用例的逆反心理) (3) 核心业务的监控(每周全天24小时都保证 阅读全文
posted @ 2019-08-19 23:12 Aluosen 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 方法1 先猜表名 And (Select count(*) from 表名)<>0 猜列名 And (Select count(列名) from 表名)<>0 或者也可以这样 and exists (select * from 表名) and exists (select 列名 from 表名) 返 阅读全文
posted @ 2019-08-11 15:42 Aluosen 阅读(2567) 评论(0) 推荐(0) 编辑