摘要: Python 2.7+selenium+Firefox 55.0.3 代码: 错误信息如下: selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 回 阅读全文
posted @ 2017-11-17 15:10 笑面浮屠 阅读(553) 评论(0) 推荐(0) 编辑
摘要: 问题描述:安装python的opencv库后,导入时出现RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9, ImportError: numpy.core.multiarray 阅读全文
posted @ 2017-10-15 05:45 笑面浮屠 阅读(1018) 评论(0) 推荐(0) 编辑
摘要: 1. beginSheetModalForWindow:self.view.window completionHandler:^(NSInteger result), 创建窗口显示在操作界面的下面 2. beginWithCompletionHandler:^(NSInteger result),创 阅读全文
posted @ 2017-09-27 17:09 笑面浮屠 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 1. NSOpenPanel的beginWithCompletionHandler:^(NSInteger result),打开文件对话框时,对话框出现在屏幕的中央。 2. NSOpenPanel的beginSheetModalForWindow:self.view.window completio 阅读全文
posted @ 2017-09-27 16:48 笑面浮屠 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: 传送门:https://my.oschina.net/u/2340880/blog/886861 摘要: NSTableView是AppKit中的表视图控件,是macOS开发中非常重要的一种视图控件。熟练应用NSTableView控件对mac软件开发十分重要。 NSTableView的应用详解 一、 阅读全文
posted @ 2017-09-11 14:00 笑面浮屠 阅读(7628) 评论(1) 推荐(1) 编辑
摘要: 1. 环境 Mac OSX 10.10.5 + Xcode 7.2.1 2. 创建工程 3. 控件设置 a. 拖动一个TableView控件和一个Button控件到View Controller. b. 设置TableView为view-base形式,并设置显示为两列,网格设为实线。 c. 设置Ta 阅读全文
posted @ 2017-09-11 10:20 笑面浮屠 阅读(1054) 评论(0) 推荐(0) 编辑
摘要: 1. .h ->@property int x,y; .m->不使用 @synthesize,生成的setter和getter是_x, _y. 使用@syntherisze x,y; 生成的setter和getter都是x, y; 2. .h -> 多参数函数: -(void) setX: (int 阅读全文
posted @ 2017-09-04 17:42 笑面浮屠 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 传送门: http://michael-roshen.iteye.com/blog/1328142 1. 环境: win7 + git bash 2. 起因 运行: 时出现:warning: LF will be replaced by CRLF xxxxx 3. 原因分析 CRLF -- Carr 阅读全文
posted @ 2017-09-03 00:52 笑面浮屠 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 编译环境: Windows7+Ecliplse+Django 解决方法就是在<th>外面加<tr>. 阅读全文
posted @ 2017-08-30 22:37 笑面浮屠 阅读(1035) 评论(0) 推荐(0) 编辑
摘要: 一. From: http://www.sharejs.com/codes/Python/8309 1.在Scrapy工程下新建“middlewares.py” 2.在项目配置文件里(./project_name/settings.py)添加 只要两步,现在请求就是通过代理的了。测试一下^_^ 二. 阅读全文
posted @ 2017-08-28 14:10 笑面浮屠 阅读(7795) 评论(0) 推荐(0) 编辑