摘要:
目的:保证一个类只有一个单一的实例好处:1.在资源共享的情况下,避免由多个操作而导致的资源消耗;2.提供可变数目的实例。标准的单例代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Tex... 阅读全文
摘要:
1、CentOS安装Python的依赖包yum groupinstall "Development tools"yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-... 阅读全文
摘要:
my_debugger_defines.py 1 #encoding:utf-8 2 3 from ctypes import * 4 from sys import version as py_ver 5 6 # In python 2.7.6, LPBYTE is not defined i... 阅读全文
摘要:
网络层---数据包的包格式里面有个很重要的字段叫做协议号。比如在传输层如果是TCP连接,那么在网络层IP包里面的协议号就将会有个值是6,如果是UDP的话那个值就是17---传输层。传输层---通过接口关联(端口的字段叫做端口)---应用层。用netstat –an可以查看本机开放的端口号。代理服务器... 阅读全文
摘要:
集合AddInsertRemoveItemSortFindList如果集合重置大小,就是O(1)或O(n)O(n)O(n)O(1)O(n log n),最坏情况O(n^2)StackPush(),如果栈必须重置大小,就是O(1)或O(n)n/aPop,O(1)n/an/an/aQueueEnqueu... 阅读全文
摘要:
1、helloworldDim helloworldhelloworld = "QTP自动化测试技术导航"mxgbox helloworld2、显示申明变量Option Explicit '显示申明变量Dim helloworldhelloworld = 'QTP自动化测试技术导航"msgbox... 阅读全文
摘要:
本次笔记主要记录LoadRunner脚本设计、场景设计和结果分析1、 脚本设计 录制模式 手工模式:插入步骤、手动编写 1.1 脚本增强: 事务、集合点、参数化、关联、检查点 检查点:web_reg_find 、web_find(需要打勾)区别 其中web... 阅读全文
摘要:
函数:def fact(n): if n==1: return 1 return n * fact(n-1)递归过程:print(fact(5))>>fact(5)>>5 * fact (4)>>5 * (4 * fact(3))>>5 * (4 * (3 * fact(2)))>>5 *... 阅读全文
摘要:
*代表tuple集合,**代表dictdef func(a, b, c=0, *args, **kw) print ('a=',a, 'b=',b,'c=',c,'args=',args,'kw=',kw)>> func(1,2,c=3)>>a=1 b=2 c=3 args=() kw={}>>f... 阅读全文