requests与Unittest的结合形成自动化测试 py文件1 import json import unittest,requests,parameterized def yun_login(username,password): url = "http://yun.zenm.vip/iot/ ...
                            
                            
                                分类:
其他好文   时间:
2021-06-25 16:50:40   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    1 <?php 2 $str = '1234'; 3 $ar =str_split($str); 4 perm($ar, 0, count($ar)-1); 5 6 function perm(&$ar, $now, $length) { 7 if($now == $length){ 8 $str= ...
                            
                            
                                分类:
Web程序   时间:
2021-06-25 16:41:48   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    1.单例模式 单例模式顾名思义,就是只有一个实例。作为对象的创建模式, 单例模式确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。 单例模式的要点有三个: 一是某个类只能有一个实例; 二是它必须自行创建这个实例; 三是它必须自行向整个系统提供这个实例。 为什么要使用PHP单例模式 1 ...
                            
                            
                                分类:
Web程序   时间:
2021-06-24 18:06:08   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                1、添加一条数据 insert insert 方法添加数据成功返回添加成功的条数,通常情况返回 1 public function index(){ $data = ['cat'=>'1','title'=>'日系小浪漫与温暖羊毛针织拼接网纱百褶中长收腰连衣裙','price'=>'1598.35' ...
                            
                            
                                分类:
数据库   时间:
2021-06-24 18:05:18   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    绕过ip限制 1.enclosed alphanumerics List: ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⑩ ? ? ? ? ? ? ? ? ? ? ⑴ ⑵ ⑶ ⑷ ⑸ ⑹ ⑺ ⑻ ⑼ ⑽ ⑾ ⑿ ⒀ ⒁ ⒂ ⒃ ⒄ ⒅ ⒆ ⒇ ⒈ ⒉ ⒊ ⒋ ⒌ ⒍ ⒎ ⒏ ⒐ ⒑ ⒒ ⒓ ⒔ ⒕ ⒖ ⒗  ...
                            
                            
                                分类:
其他好文   时间:
2021-06-24 18:00:02   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                Web服务器 1、技术讲解 ASP: 微软:国内最早流行的就是ASP; 在HTML中嵌入了VB的脚本,ASP + COM; 维护成本高 C# PHP: PHP开发速度很快,功能强大,跨平台,代码简单 无法承载大访问量的情况(局限性) JSP/Servlet: B/S:浏览和服务器 C/S:客户端和服 ...
                            
                            
                                分类:
Web程序   时间:
2021-06-24 17:55:39   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    import timeimport unittestdef my_sum(a, b): a += 1 b += 2 return a + b# 生成测试用例class TestSum(unittest.TestCase): def test_001(self): print(my_sum(1,2)) ...
                            
                            
                                分类:
其他好文   时间:
2021-06-24 17:47:34   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    前言 httprunner 3.x可以支持正则匹配断言,使用assert_regex_match方法 assert_regex_match assert_regex_match 源码如下 def assert_regex_match( self, jmes_path: Text, expected_ ...
                            
                            
                                分类:
Web程序   时间:
2021-06-23 17:08:14   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    case: decode: decode中的括号相当于case的end; ...
                            
                            
                                分类:
其他好文   时间:
2021-06-23 16:50:49   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                报错信息: PHP Warning: Packets out of order. Expected 1 received 56. Packet size=3420216 in /data/bogiang/test/EC/swoole_process.php on line 62 Warning: P ...
                            
                            
                                分类:
数据库   时间:
2021-06-22 18:19:52   
                                阅读次数:
0