Numpy数组创建 np.array(list/tuple) # 接收一切序列型对象,如list列表、tuple元组等 数组 (array) 是相同类型的元素 (element) 的集合所组成数据结构 (data structure)。 numpy 数组中的元素用的最多是「数值型」元素 数组常见属性 ...
分类:
其他好文 时间:
2020-12-19 13:11:21
阅读次数:
2
1.find() 返回值为目标元素的下标,若不存在目标元素则返回-1 #include<iostream> using namespace std; int main() { string str1 = "A BC", str2 = "abc"; char c = '5'; int i; i= st ...
分类:
其他好文 时间:
2020-12-19 13:09:58
阅读次数:
2
题目链接:https://leetcode-cn.com/problems/kth-largest-element-in-an-array/ 1 先快速排序,再取第 K个 class Solution { public int findKthLargest(int[] nums, int k) { ...
分类:
编程语言 时间:
2020-12-19 12:57:18
阅读次数:
1
##1.确定新增以及修改事件 **注意:**修改的时候需要把当前这一行的数据传递过去,做回显展示,并需要传递一个action标记,来判断是修改还是新增,默认不传为新增。 ##2.新增修改事件激活 **注意:**新增对象我们传递的两个参数,第一个是空对象,第二个为新增标记。并去触发修改事件。从图中我们 ...
分类:
其他好文 时间:
2020-12-19 12:32:21
阅读次数:
1
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.DirectoryServices; na ...
//获取某元素后相邻的所有class名为MsoToc2的兄弟元素nextAll(node){ let that = this, nextNode = that.next(node), nodeArray = []; while(nextNode != null && that.hasClass(ne ...
分类:
Web程序 时间:
2020-12-18 12:49:19
阅读次数:
2
在《DarkMode(1):产品应用深色模式分析》提过,单纯反转是不行的。但是,把不需要反转的,在反转过来。或者用js,给想要反转的,加上反转样式,再对其他的做微调。这样个人觉得,开发成本是最低的@media(prefers-color-scheme:dark){//one.app{filter:invert(1)hue-rotate(180deg);img,button,.active{//fi
分类:
Web程序 时间:
2020-12-17 13:10:01
阅读次数:
6
Smallest Subtree with all the Deepest Nodes (M) 题目 Given the root of a binary tree, the depth of each node is the shortest distance to the root. Retur ...
分类:
其他好文 时间:
2020-12-17 12:55:47
阅读次数:
3
1 driver='未知司机(16.0)张三(7.0)' 2 3 #仅保留司机姓名 4 pattern=r'\(\d+.\d+\)' 5 print(re.split(pattern,driver)) #return ['未知司机', '张三', ''] 6 7 #仅保留司机趟次 8 9 patte ...
分类:
编程语言 时间:
2020-12-17 12:46:02
阅读次数:
1
text属性的方法 1 2 3 4 driver.find_element_by_android_uiautomator('new UiSelector().text("字节跳动公司")').click() #text 精准定位全文 driver.find_element_by_android_ui ...
分类:
移动开发 时间:
2020-12-17 12:09:52
阅读次数:
3