##背景我们经常在列表的页面中,点击列表中的行,一般进入详情页面,长按列表中一行,会弹出一个菜单,包含了对某一行的操作(编辑、删除等等),也知道通常的用法:0x01. 在Activity中注册需要上下文菜单的View: registerForContextMenu(mListView);0x02. ... ...
分类:
其他好文 时间:
2020-02-25 12:53:53
阅读次数:
101
1 """ 2 Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. 3 Example 1: 4 Inp ...
分类:
其他好文 时间:
2020-02-25 00:00:16
阅读次数:
59
https://blog.csdn.net/jisuanji198509/article/details/95238355 于是想要将一个char转换为string只能找其他间接的方法了,这里提供几种: //1、构造函数里有个string(size_t,char) char x = 'a'; str ...
分类:
其他好文 时间:
2020-02-24 23:52:02
阅读次数:
73
aa=wd.find_elements_by_xpath('//a') for a in aa: print(a.text) #显示所有A标签中文本 aa=wd.find_elements_by_xpath('//a') for a in aa: print(a.get_attribute("hre ...
分类:
Web程序 时间:
2020-02-24 20:40:56
阅读次数:
65
一、动态规划 问题:Bone Collector Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bone ...
分类:
其他好文 时间:
2020-02-24 18:48:56
阅读次数:
68
转:https://blog.csdn.net/chwshuang/article/details/52840539 最近使用Spring + SpringMvc + Quartz搭建的零配置系统中,使用@annotation注解方式, 直接在类的方法上使用@Scheduled(cron=”0 /5 ...
分类:
编程语言 时间:
2020-02-24 18:43:18
阅读次数:
72
在集成react-native-device-info的时候遇到一个坑,找了好久才找不出来,这个组件按照步骤来iOS没啥问题,安卓就有问题了。 Error:Could not find common.jar (android.arch.core:common:1.0.0). Searched in ...
分类:
其他好文 时间:
2020-02-24 18:39:55
阅读次数:
148
一、shiro基础概念 Authentication:身份认证 / 登录,验证用户是不是拥有相应的身份; Authorization:授权,即权限验证,验证某个已认证的用户是否拥有某个权限;即判断用户是否能做事情,常见的如:验证某个用户是否拥有某个角色。或者细粒度的验证某个用户对某个资源是否具有某个 ...
分类:
其他好文 时间:
2020-02-24 18:36:09
阅读次数:
69
1 """ 2 Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of ...
分类:
其他好文 时间:
2020-02-24 16:59:06
阅读次数:
82
1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 # python3 4 import string 5 import urllib 6 from urllib import request 7 from bs4 import Beautiful ...
分类:
编程语言 时间:
2020-02-24 16:51:48
阅读次数:
129