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
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.DirectoryServices; na ...
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
前提 在fallback时,发现重复注册了两次同一uri,报错: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ...
分类:
其他好文 时间:
2020-12-16 12:42:34
阅读次数:
2
<body> <ul> <li>一级菜单 <ol> <li>二级菜单</li> <li>二级菜单</li> <li>二级菜单</li> <li>二级菜单</li> </ol> </li> <li>一级菜单 <ol> <li>二级菜单</li> <li>二级菜单</li> <li>二级菜单</li> ...
分类:
Web程序 时间:
2020-12-15 12:56:03
阅读次数:
11
编译器报错: `tk.mybatis.mapper.MapperException: 当前实体类不包含名为的属性!` 浏览器报错: `Error: Request failed with status code 500` 解决办法: 因为实体类的属性使用的是`int`类型,页面传递数据,原始数据(i ...
分类:
移动开发 时间:
2020-12-15 12:04:17
阅读次数:
3
开发环境运行中,每次修改项目代码后都必须重新打包、重新运行。 解决: 下载依赖包: yarn add -D webpack-dev-server 配置命令: "dev": "webpack-dev-server --mode development" 执行命令: yarn dev 但执行命令时报错E ...
分类:
Web程序 时间:
2020-12-15 11:40:12
阅读次数:
4
哈喽哇,今天在访问远程服务器的时候,出现了一个小问题。 原因:之前ssh联系过服务器,重置服务器后,再次连接服务器,就会出这个问题。 一、发现问题 问题如下图代码: $ ssh root@108.61.163.242 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ...
分类:
其他好文 时间:
2020-12-14 13:49:28
阅读次数:
10