码迷,mamicode.com
首页 >  
搜索关键字:sel    ( 12804个结果
167两数之和II-输入有序数组
from typing import List# 这道题很容易能够想到,只需要遍历两边列表就可以了# 两层循环class Solution: def twoSum(self, numbers: List[int], target: int) -> List[int]: # 第一次遍历列表 for i ...
分类:编程语言   时间:2020-07-21 01:14:53    阅读次数:97
第21课 使用游标
第21课 使用游标 21.1 游标 有时,需要在检索出来的行中前进或后退一行或多行,这就是游标的用途所在。游标(cursor)是一个存储在DBMS服务器上的数据库查询,它不是一条SELECT语句,而是被该语句检索出来的结果集。在存储了游标之后,应用程序可以根据需要滚动或浏览其中的数据。 21.2 使 ...
分类:其他好文   时间:2020-07-21 01:02:01    阅读次数:73
206反转链表
# Definition for singly-linked list.class ListNode: def __init__(self, x): self.val = x self.next = Nonea = ListNode(1)b = ListNode(2)a.next = b# 有关链表 ...
分类:其他好文   时间:2020-07-21 00:58:45    阅读次数:67
自定义多选设置 input的value值
function setType(obj,cell){ var _text = $("#"+cell).val(); if($(obj).hasClass("selected")){ $(obj).removeClass("selected"); var _textArr = _text.split ...
分类:其他好文   时间:2020-07-20 22:31:15    阅读次数:71
scroll-view 滚动在安卓机无效,在ios可以
<scroll-view class="VerticalNav nav" scroll-y scroll-with-animation :scroll-top="verticalNavTop" style > <view class="cu-item" :class="item.id == sele ...
分类:移动开发   时间:2020-07-20 15:33:50    阅读次数:157
ios修改导航栏上返回按钮上的文字,例如把back修改为返回
方法很简答,三行代码搞定: UIBarButtonItem *backBtn = [[UIBarButtonItem alloc] init]; backBtn.title = @"返回"; self.navigationItem.backBarButtonItem = backBtn; // 注意 ...
分类:移动开发   时间:2020-07-20 13:21:26    阅读次数:94
正常安装selenium后,pycharm导入selenium失败
问题:导入selenium失败 解决:去File/settings里面的python interpreter/project interpreter路径修改为python的安装路径即可 ...
分类:其他好文   时间:2020-07-20 10:59:21    阅读次数:124
获取Json数据某节点的值
public static string GetJsonValue(string jsonStr, string key) { string result = string.Empty; if (!string.IsNullOrEmpty(jsonStr)) { key = "\"" + key.T ...
分类:Web程序   时间:2020-07-20 10:46:46    阅读次数:89
MyBatis 实现一对多有几种方式,怎么操作的?
有联合查询和嵌套查询。联合查询是几个表联合查询,只查询一次,通过在 resultMap 里面的 collection 节点配置一对多的类就可以完成;嵌套查询是先查 一个表,根据这个表里面的 结果的外键 id,去再另外一个表里面查询数据,也是通过 配置 collection,但另外一个表的查询通过 s ...
分类:其他好文   时间:2020-07-20 10:43:14    阅读次数:51
[LeetCode] 312. Burst Balloons
Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloon ...
分类:其他好文   时间:2020-07-19 18:05:12    阅读次数:68
12804条   上一页 1 ... 50 51 52 53 54 ... 1281 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!