1. NSOpenPanel的beginWithCompletionHandler:^(NSInteger result),打开文件对话框时,对话框出现在屏幕的中央。 2. NSOpenPanel的beginSheetModalForWindow:self.view.window completio ...
分类:
其他好文 时间:
2017-09-27 17:39:54
阅读次数:
292
1 - (void)viewDidLoad { 2 [super viewDidLoad]; 3 //滚动视图,可以对屏幕内容进行滚屏查看。 4 5 UIScrollView* sv = [[UIScrollView alloc]init]; 6 7 sv.frame = CGRectMake(0,... ...
分类:
其他好文 时间:
2017-09-27 16:12:25
阅读次数:
204
1.几个功能和相关配置文件 1)打开“关于此页”功能,需要启用 FND:诊断(FND: Diagnostics) 2)打开“个性化页”功能,需要启用 个性化自助定义(Personalize Self-Service Defn) FND:已启用“个性化区域”链接(FND: Personalizatio ...
分类:
其他好文 时间:
2017-09-27 14:26:28
阅读次数:
261
1.类的实例化返回值 1 class Foo(object): 2 def __init__(self): 3 pass 4 5 obj=Foo() 6 print(obj) 返回值:<__main__.Foo object at 0x0000000001E9AE48> 2.__str__方法: 1 ...
分类:
编程语言 时间:
2017-09-27 13:14:16
阅读次数:
164
在FCN代码中运行infer.py时出现如下错误: File "infer.py", line 4, in <module> import matplotlib.pyplot as plt File "/usr/local/lib/python2.7/dist-packages/matplotlib ...
分类:
编程语言 时间:
2017-09-27 13:12:16
阅读次数:
754
In this chapter we will look at a seemingly trivial detail - our shell.This examination will reveal some of the inner working of the shell and the ter ...
分类:
系统相关 时间:
2017-09-27 13:09:57
阅读次数:
256
在以前的博文中我们介绍了Slick,它是一种FRM(Functional Relation Mapper)。有别于ORM,FRM的特点是函数式的语法可以支持灵活的对象组合(Query Composition)实现大规模的代码重复利用,但同时这些特点又影响了编程人员群体对FRM的接受程度,阻碍了FRM ...
分类:
数据库 时间:
2017-09-27 10:09:27
阅读次数:
282
APPIUM 常用API介绍(1) 前言:android手机大家都很熟悉,操作有按键、触摸、点击、滑动等,各种操作方法可以通过api的方法来实现。参考博文:http://blog.csdn.net/bear_w/article/details/50330565 1.click click(self) ...
分类:
移动开发 时间:
2017-09-27 00:51:10
阅读次数:
416
最近在学习自动化框架appium,网上找一些API相关资料整理了一下 1.find_element_by_id find_element_by_id(self, id_): Finds element within this element's children by ID(通过元素的ID定位元素) ...
分类:
移动开发 时间:
2017-09-27 00:51:02
阅读次数:
372
App运行类 1.current_activity current_activity(self): 2. start_activity start_activity(self, app_package, app_activity, **opts): 3. wait_activity wait_act ...
分类:
移动开发 时间:
2017-09-27 00:45:41
阅读次数:
316