06 2021 档案

摘要:1. 删除数组中的重复元素: #将元素[1,1,2,3,4,5,6,3,5,6]中的重复元素去掉 #建立一个新的列表来存储 def solution1(list): list1=[] for i in list: if i not in list1: list1.append(i) return l 阅读全文
posted @ 2021-06-13 20:06 judith0719 阅读(37) 评论(0) 推荐(0)
摘要:设置变量: from collections import namedtuple ''' 利用namedtuple 设置变量 ''' default=[None,None] ConfigItem=namedtuple("ConfigItem",["cmd_name","cmd"]) #获取电脑上链接 阅读全文
posted @ 2021-06-09 18:15 judith0719 阅读(111) 评论(0) 推荐(0)
摘要:Python 安装和设置环境变量之后报错 zsh: killed python3 解决:MAC M1系统只支持python 3.9, 不支持3.6 和3.7 安装命令: 先安装brew : /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/Home 阅读全文
posted @ 2021-06-05 19:34 judith0719 阅读(2962) 评论(0) 推荐(0)
摘要:封装ADB Pipe 模块 import os import subprocess import sys from subprocess import * import threading import setting class commandPipe(): def __init__(self,c 阅读全文
posted @ 2021-06-04 10:48 judith0719 阅读(92) 评论(0) 推荐(0)
摘要:定义logger方法: import loggingimport osimport timeimport utilsdata=time.strftime("%Y-%m-%d-%H:%M:%S")logging.basicConfig(filename=utils.get_project_path() 阅读全文
posted @ 2021-06-01 11:20 judith0719 阅读(248) 评论(0) 推荐(0)