using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.DirectoryServices; na ...
package LeetCode_1688 /** * 1688. Count of Matches in Tournament https://leetcode.com/problems/count-of-matches-in-tournament/ You are given an intege ...
分类:
其他好文 时间:
2020-12-18 12:33:00
阅读次数:
2
昨晚想了一晚上,最后还是看题解了/kk 约用时 20min。 因为要考虑到原来的字符串有的字母是可以保留的,所以在按上一题的方法求过一遍之后,还需要再次决策。 设 g[i] 表示从 1 ~ i 所需的最少次数,则分为两种情况: 当 a[i] == b[i] 时,也就是说第 i 个位置就不用涂了,保留 ...
分类:
其他好文 时间:
2020-12-18 12:19:06
阅读次数:
3
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
需求: 修改 Django Admin 后台页面布局 #新创建工程 test34 #新创建应用 stu #修改 settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib. ...
分类:
其他好文 时间:
2020-12-17 12:05:03
阅读次数:
2
本地maven setting.xml 文件内容如下: <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor ...
Logging to syslog from Your Script Problem You’d like your script to be able to log to syslog. Solution Use logger, Netcat, or bash’s built-in network ...
分类:
其他好文 时间:
2020-12-15 12:59:05
阅读次数:
9
<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