摘要: 1、遍历字典 for key in dict: key:dict[key] 2、输出字典指定key的value dict['key'] dict['key1']['key2']['key3']嵌套字典 3、字典常用方法: 4、列表常用方法: 1 # -*- coding:utf-8 -* 2 gam 阅读全文
posted @ 2021-06-01 19:32 SpriteGirl 阅读(281) 评论(0) 推荐(0)
摘要: 1、字符串string和字节对象bytes的转换 bytes转string (1)r.read() -->type:bytes (2)r.read().decode() >type:string (3)s = str(bytes, encoding='utf-8') 将字节对象转换为字符串 stri 阅读全文
posted @ 2021-06-01 18:15 SpriteGirl 阅读(1221) 评论(0) 推荐(0)
摘要: 1、官网下载链接:https://dev.mysql.com/downloads/mysql/ 选择64位点击,往下滑动,点击免登录下载 2、解压到你安装软件的路径 3、新建my.ini,初始化配置文件,复制粘贴以下内容到my.ini,记得更改安装路径 [mysql] # 设置mysql客户端默认字 阅读全文
posted @ 2021-05-31 18:05 SpriteGirl 阅读(244) 评论(0) 推荐(0)
摘要: 1、深网 deep Web 容易采集,网络的一部分 2、暗网 dark Web(Darknet/dark Internet) 它们也建立在已有的网络基础上,但是使用 Tor 客户端,带有运行在 HTTP 之上的新协议,提供了一个信息交换的安全隧道。 3、浅网 surface Web 浅网是互联网上搜 阅读全文
posted @ 2021-05-31 15:12 SpriteGirl 阅读(120) 评论(0) 推荐(0)
摘要: 常用符号 * 匹配前面的字符、子表达式或括号里的字符 0 次或多次 + 匹配前面的字符、子表达式或括号里的字符至少1 次 [] 匹配任意一个字符(相当于“任选一个”) () 表达式编组(在正则表达式的规则里编组会优先运行) {m,n} 匹配前面的字符、子表达式或括号里的字符 m 到n 次(包含 m 阅读全文
posted @ 2021-05-28 16:47 SpriteGirl 阅读(152) 评论(0) 推荐(0)
摘要: 1、报错内容: GuessedAtParserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually 阅读全文
posted @ 2021-05-28 10:55 SpriteGirl 阅读(479) 评论(0) 推荐(0)
摘要: 1、appium调用键盘事件 driver.press_keycode() 括号内填入pc端键盘的代号 2、uiautomator2 3、adb shell input keyevent 代号表: 电话键 控制键 基本 组合键 KEYCODE_CALL 拨号键5 KEYCODE_ENTER 回车键 阅读全文
posted @ 2021-05-27 15:52 SpriteGirl 阅读(246) 评论(0) 推荐(0)
摘要: 1、SyntaxError异常 报错内容: SyntaxError: Non-UTF-8 code starting with '\xd2' in file *.py on line 24, but no encoding declared; see http://python.org/dev/pe 阅读全文
posted @ 2021-05-27 15:22 SpriteGirl 阅读(194) 评论(0) 推荐(0)
摘要: 报错内容: The instrumentation process cannot be initialized. Make sure the application under test does. 前一分钟Pycharm开心编译成功代码,后一分钟优化完代码再编译运行一直报错,心好累,百度所有方法无 阅读全文
posted @ 2021-05-27 15:19 SpriteGirl 阅读(230) 评论(0) 推荐(0)
摘要: 1、工具 Python+Appium Pycharm、雷电模拟器 2、代码 # coding:utf-8 import time from appium import webdriver def start_app(): qqlite_caps = { "platformName": "Androi 阅读全文
posted @ 2021-05-27 14:11 SpriteGirl 阅读(144) 评论(0) 推荐(0)