摘要: python3不能直接使用reduce()函数,因为reduce() 函数已经被从全局名字空间里移除了,它现在被放置在fucntools 模块里,所以要使用reduce函数得先饮用fucntools 例如: >>> from functools import reduce >>> reduce(la 阅读全文
posted @ 2019-05-13 16:57 夏诗 阅读(1361) 评论(0) 推荐(1) 编辑
摘要: 在终端输入命令行:system_profiler SPUSBDataType | grep "Serial Number:.*" | sed s#".*Serial Number: "##' 结果输出:连接在电脑的苹果手机的UDID 如图: 阅读全文
posted @ 2018-10-11 11:37 夏诗 阅读(2905) 评论(0) 推荐(0) 编辑
摘要: 无参数匿名函数: f=lambda: none f() 输出:none 带参数匿名函数: 带一个参数: f=lambda x:x+1 f(1) 输出:2 带多个参数: f=lambda a,b,c:a*b*c f(1,2,3) 输出:6 带参数lambda函数作为普通函数的返回值: def test 阅读全文
posted @ 2018-10-11 11:17 夏诗 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Appium Desktop版本:1.9.0 xcode版本:9.4.1 测试机:iPhone7 11.3系统 问题描述:在xcode上的produc的text运行是可以将WebDriverAgent成功安装到手机上,但用代码去运行时只能将APP安装到手机上随后WebDriverAgent自动被卸载 阅读全文
posted @ 2018-09-21 18:28 夏诗 阅读(17525) 评论(1) 推荐(0) 编辑
摘要: 此时先检查一下有没有安装Appium-Python-Client,如果没有安装Appium-Python-Client就在控制台输入pip install Appium-Python-Client进行Appium-Python-Client的安装,安装完后在Pycharm中导入appium模块时还会 阅读全文
posted @ 2018-08-28 15:16 夏诗 阅读(16920) 评论(3) 推荐(0) 编辑
摘要: 使用pip3安装软件的时候提示要升级pip3“You are using pip version 10.0.1, however version 18.0 is available.You should consider upgrading via the 'pip install --upgrad 阅读全文
posted @ 2018-08-28 14:30 夏诗 阅读(19126) 评论(0) 推荐(2) 编辑
摘要: 说明:libimobiledevice相当于安卓的adb,可以使用命令对ios应用进行安装卸载等操作。 在MacOS下安装libimobiledevice: $ brew uninstall ideviceinstaller $ brew uninstall libimobiledevice $ b 阅读全文
posted @ 2018-07-13 11:00 夏诗 阅读(3923) 评论(0) 推荐(1) 编辑
摘要: 原本我直接这样写: Process process=Runtime.getRuntime().exec("adb devices"); 但是运行时出错: java.io.IOException: Cannot run program "adb": error=2, No such file or d 阅读全文
posted @ 2018-07-13 10:55 夏诗 阅读(1870) 评论(0) 推荐(0) 编辑
摘要: 终端输入:sudo chmod -R g+w /usr/local 再输入:"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 出现Press RETURN to continue or 阅读全文
posted @ 2018-03-29 10:31 夏诗 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1.写好文件sublime_imfix.c并保存。 #include <gtk/gtkimcontext.h> void gtk_im_context_set_client_window (GtkIMContext *context, GdkWindow *window) { GtkIMContex 阅读全文
posted @ 2018-03-29 10:29 夏诗 阅读(497) 评论(0) 推荐(0) 编辑