2019年5月24日
    
 
        
        
摘要:        
1.获取登陆信息 w,who,who am i 2.查看进程 ps 3.查看命令说明 whatis xxx 如whatis ls 4 查看命令的位置 which,whereis 5 查看帮助文档 man ls,ls --help,info ls 6.切换用户 su 如 su dapan 7.以管理员    
阅读全文
 
        
            posted @ 2019-05-24 01:51
大潘NO_1
阅读(238)
推荐(0)
        
 
		
    
        
            
        
         
        2019年5月17日
    
 
        
        
摘要:        
1 appium每次运行都去安装Unlock,AppiumSetting,等3个应用,如何解决 https://blog.csdn.net/seaker_/article/details/80626358 2. 使用uiautomatorviewer查看手机截图,报错信息如图,解决方法https:/    
阅读全文
 
        
            posted @ 2019-05-17 21:53
大潘NO_1
阅读(349)
推荐(0)
        
 
		
    
        
            
        
         
        2019年4月18日
    
 
        
        
        
            posted @ 2019-04-18 01:17
大潘NO_1
阅读(178)
推荐(0)
        
 
		
    
        
            
        
         
        2019年4月17日
    
 
        
        
摘要:        
异常捕获: python中异常会经常出现 ,会导致代码的后续无法进行,解决方法就是提前捕获到这个异常,然后记录下这个异常,保证后续程序不受影响 写法规格如下: try: print("对这段代码有疑惑,来一个异常捕获,程序尝试要执行的代码") except IOError as e: #except    
阅读全文
 
        
            posted @ 2019-04-17 19:50
大潘NO_1
阅读(307)
推荐(0)
        
            
        
        
摘要:        
1.with open('文本文件',encoding='utf-8') as f: #(建议用witp open方法,写with就不需要再写f.close()了,python会自行判断关闭文件的) print(f.read().rstrip()) #rstrip()是字符串的方法,把字符串右边空格    
阅读全文
 
        
            posted @ 2019-04-17 02:27
大潘NO_1
阅读(2799)
推荐(0)
        
 
		
    
        
            
        
         
        2019年4月16日
    
 
        
        
摘要:        
一.模块 collections 中的一个类—— OrderedDict 。(字典让你能够将信息关联起来,但它们不记录你添加键 — 值对的顺序。要创建字典并记录其中的键 — 值对的添加顺序,可使用模块 collections 中的 OrderedDict 类。 OrderedDict 实例的行为几乎    
阅读全文
 
        
            posted @ 2019-04-16 00:06
大潘NO_1
阅读(182)
推荐(0)
        
 
		
    
        
            
        
         
        2019年4月15日
    
 
        
        
摘要:        
导入类的方法: 1.from 模块 import 类名 在主文件中,使用就是:类名 2.import 模块 在主文件中,使用就是:模块.类名 3.导入模块当中所有类 (不推荐) from module_name import * 4.从一个模块当中,导入另一个模块 有时候,需要将类分散到多个模块中,    
阅读全文
 
        
            posted @ 2019-04-15 23:44
大潘NO_1
阅读(738)
推荐(0)
        
 
		
    
        
            
        
         
        2019年4月14日
    
 
        
        
摘要:        
一.安装robotframework和selenium2library,步骤如下: pip install robotframework pip install robotframework-selenium2library 二.pycharm安装插件,步骤如下: 1)打开Pyhcarm,打开菜单栏    
阅读全文
 
        
            posted @ 2019-04-14 17:42
大潘NO_1
阅读(833)
推荐(0)
        
            
        
        
摘要:        
# <editor-fold desc="父类和子类关系,继承"># <editor-fold desc="类--讲解--Car">class Car(): def __init__(self,make,model,year): self.make=make self.model=model sel    
阅读全文
 
        
            posted @ 2019-04-14 03:25
大潘NO_1
阅读(4393)
推荐(0)
        
 
		
    
        
            
        
         
        2019年4月13日
    
 
        
        
摘要:        
创建类 一 class Dog():    
阅读全文
 
        
            posted @ 2019-04-13 23:44
大潘NO_1
阅读(161)
推荐(0)