会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
数据科学工作加油站
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
8
9
10
11
12
13
14
15
16
···
28
下一页
2018年9月5日
在python中逐行读取大文件
摘要: 在我们日常工作中,难免会有处理日志文件的时候,当文件小的时候,基本不用当心什么,直接用file.read()或readlines()就可以了,但是如果是将一个10G大小的日志文件读取,即文件大于内存的大小,这么处理就有问题了,会将整个文件加载到内存中从而造成MemoryError … 也就是发生内存
阅读全文
posted @ 2018-09-05 14:52 蒋励
阅读(7429)
评论(0)
推荐(1)
2018年8月30日
【解决方案】[XCUITest] WDA is not listening at 'http://localhost:8100/'
摘要: 1. 使用Xcode 编译 WebDriver 发现端口为:serverurlhere->http://手机ip:0 <-serverurlhere 2. 解决方案: xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgen
阅读全文
posted @ 2018-08-30 18:31 蒋励
阅读(869)
评论(0)
推荐(0)
2018年8月21日
Python. logging
摘要: logger的format格式参数 也可以给Formatter传入第二个参数,修改日期格式,比如 %Y-%m-%d ,则输出的log就没有时分秒了。
阅读全文
posted @ 2018-08-21 17:04 蒋励
阅读(176)
评论(0)
推荐(0)
2018年8月20日
Python单元测试框架unittest
摘要: 官网:https://docs.python.org/2.7/library/unittest.html https://blog.csdn.net/huilan_same/article/details/52944782 在unittest.main()中加 verbosity 参数可以控制输出的
阅读全文
posted @ 2018-08-20 15:07 蒋励
阅读(231)
评论(0)
推荐(0)
2018年7月20日
Mac appium iOS 安装命令
摘要: 检验环境安装配置问题: npm install appium-doctor -g
阅读全文
posted @ 2018-07-20 14:54 蒋励
阅读(258)
评论(0)
推荐(0)
2018年7月17日
iOS自动化-iOS录屏xrecord及解决iPhone设备不显示的问题
摘要: github地址:https://github.com/WPO-Foundation/xrecord 安装方法: 使用方法: 进入xrecord目录 --进入bin目录--打开xrecord即可 配置命令行启动: 列出可用的捕获录像的设备 显示结果: 问题:如果让iPhone显示在以上list列表中
阅读全文
posted @ 2018-07-17 11:10 蒋励
阅读(3456)
评论(0)
推荐(0)
2018年7月11日
aclocal: error: aclocal: file '/usr/local/share/aclocal/wxwin.m4' does not exist
摘要: 1. 查找wxwin.m4文件 2. 删除/usr/local/share/aclocal/wxwin.m4,建立软连接
阅读全文
posted @ 2018-07-11 17:31 蒋励
阅读(1107)
评论(0)
推荐(0)
2018年7月9日
pip 升级 Appium-Python-Client
摘要: 第一种方法: 如果出现权限提醒: 第二种方法: 在实践中发现, site-packages目录下webdriver的内容并没有更新到最新版(0.26/0.27), 解决方案: 手动删除/site-packages/appium/目录,然后重新安装。 安装后即可看到/site-packages/app
阅读全文
posted @ 2018-07-09 18:14 蒋励
阅读(820)
评论(0)
推荐(0)
npm WARN network …… request to https://cnpmjs.…… failed, reason: socket hang up
摘要: 出现类似问题的原因是由于之前配置了镜像导致的 解决方案:删掉镜像,使用npm本身进行安装 删除镜像的命令: 方法1: 方法2:
阅读全文
posted @ 2018-07-09 15:04 蒋励
阅读(847)
评论(0)
推荐(0)
stderr: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
摘要: 错误提示: (1). stderr: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a co
阅读全文
posted @ 2018-07-09 14:49 蒋励
阅读(537)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
28
下一页
公告