Problem LeetCode Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Example 1: Input: root = [3,1,4,null ...
分类:
编程语言 时间:
2021-01-11 10:45:32
阅读次数:
0
1.检查配置文件 my.cnf 如果存在修改为如下值,没有则添加 innodb_large_prefix = 1 innodb_file_per_table = 1 innodb_file_format = Barracuda 2.修改建表语句,添加 row_format=dynamic drop ...
分类:
数据库 时间:
2021-01-11 10:41:29
阅读次数:
0
# 打印每个o出现的位置 str1 = "hellopythonhelloworld" str2 = 'hellopythonhelloworld' str3 = 'hellopythonhelloworl' index = 0 for i in str1: if i == 'o': print(i ...
分类:
其他好文 时间:
2021-01-11 10:40:33
阅读次数:
0
极简插件:https://chrome.zzzmh.cn/index#ext ...
分类:
Web程序 时间:
2021-01-08 11:44:56
阅读次数:
0
1.获取字符串长度 1.1.获取字符串var的长度——${#var} 2.按下标截取字符串(包含起始字符) 2.1.从左数下标index(起始为0)开始向右截取字符串var长度为length的部分——${var:index:length} 2.2.从左数下标index(起始为0)开始向右截取字符串v ...
分类:
其他好文 时间:
2021-01-08 11:30:24
阅读次数:
0
#1、form-data: 就是http请求中的multipart/form-data,它会将表单的数据处理为一条消息,以标签为单元,用分隔符分开。 既可以上传键值对,也可以上传文件。 当上传的字段是文件时,会有Content-Type来说明文件类型; content-disposition,用来说 ...
分类:
Web程序 时间:
2021-01-08 10:55:07
阅读次数:
0
foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。foreach元素的属性主要有 item,index,collection,open,separator,close。item集合中每一个元素进行迭代时的别名,index表示在迭代过程中,每次迭代到的位置,open该语句以 ...
分类:
其他好文 时间:
2021-01-08 10:37:57
阅读次数:
0
使用浏览器看到返回的数据是类似下图中的: 可以看到是xml格式的 解析方式: from xlml import html ... ret = requests.get(url, headers=headers) tree = html.fromstring(ret.content) navareas ...
分类:
编程语言 时间:
2021-01-08 10:34:32
阅读次数:
0
今天继续刷leetcode。 今天着重练习了一下回文串(Palindromic string)相关的题目,其中做到1457. Pseudo-Palindromic Paths in a Binary Tree这一道题的时候,自己方法没错,但跑了两次都是TLE,然后心态有点崩,就去看了一下别人的代码, ...
分类:
其他好文 时间:
2021-01-07 12:43:48
阅读次数:
0
import time t=time.time() num=input("输入一个质数:") def prime_number(num): i=2 for i in range(int(num)): i=i*2 num=i-1 print(num) #input()print(time.time() ...
分类:
编程语言 时间:
2021-01-07 12:38:45
阅读次数:
0