def highlight_element(self, locator): 
"""docstring for highlight_element""" self._info("start") element = 
self._element_find(...
                            
                            
                                分类:
Web程序   时间:
2014-04-30 03:28:21   
                                阅读次数:
610
                             
                    
                        
                            
                            
                                题目: Given an array of integers, find two numbers 
such that they add up to a specific target number. The function twoSum should 
return indices of the t...
                            
                            
                                分类:
其他好文   时间:
2014-04-30 03:20:07   
                                阅读次数:
502
                             
                    
                        
                            
                            
                                Given an arraySofnintegers, are there 
elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in 
the array which gives the sum of ...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 22:40:00   
                                阅读次数:
438
                             
                    
                        
                            
                            
                                扩展知识:EditText的android:hint设置EditText为空时输入框内的提示信息。android:gravity android:gravity属性是对该view 
内容的限定.比如一个button 上面的text. 你可以设置该text 在view的靠左,靠右等位置.以button为...
                            
                            
                                分类:
移动开发   时间:
2014-04-29 19:15:47   
                                阅读次数:
492
                             
                    
                        
                            
                            
                                项目中有一个点赞功能,点赞的小图标添加在点赞列表旁边,在xml里可以进行设置,也可以在代码中进行绘图。下面是两种方法的设置:1、xml里:一些控件:button、textView等等里面有个属性是android:drawableLeft就可以将pic设置到text的左边。good....2、代码中:...
                            
                            
                                分类:
移动开发   时间:
2014-04-29 18:17:15   
                                阅读次数:
461
                             
                    
                        
                            
                            
                                组长:闫立新组员:苏海岩,李夏蕾,杨世超,曹锦锋,王伟光会议时间:4月28日晚7:00-7:15会议地点:新食堂二楼会议内容:昨天今天明天闫立新实现课程的上课地点添加,其实和课程名称的类似,但是具体的细节实现方面并没有那么简单,仿照代码还是会出现错误。现界面的一些优化及布局的问题,但是距离还是调整不...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 17:27:56   
                                阅读次数:
409
                             
                    
                        
                            
                            
                                2014-04-28 23:35题目:最大子数组和问题。解法:O(n)解法。代码: 1 // 
17.8 Find the consecutive subarray with maximum sum in an array. 2 // O(n) 
online algorithm. 3 #include...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 16:35:28   
                                阅读次数:
429
                             
                    
                        
                            
                            
                                2014-04-28 
23:52题目:设计算法,找出一本书中某个单词的出现频率。解法:数就行了。代码: 1 // 17.9 Given a book, find out the 
occurrences of any given words in it. 2 // Answer: 3 // 1....
                            
                            
                                分类:
其他好文   时间:
2014-04-29 16:00:32   
                                阅读次数:
388
                             
                    
                        
                            
                            
                                2014-04-29 
00:04题目:给定一个整数数组,找出所有加起来为指定和的数对。解法1:可以用哈希表保存数组元素,做到O(n)时间的算法。代码: 1 // 17.12 
Given an array of integers and target value, find all pairs in ...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 15:08:13   
                                阅读次数:
469
                             
                    
                        
                            
                            
                                事件:描述发生了什么的对象。 存在各种不同类型的事件类用来描述各种类型的用户交互。 
事件源:事件的产生器。 事件处理器:接收事件、解释事件并处理用户交互的方法。 
比如在Button组件上点击鼠标会产生以这个Button为源的一个ActionEvent,这个ActionEvent实例是一个对象...
                            
                            
                                分类:
其他好文   时间:
2014-04-28 11:02:45   
                                阅读次数:
609