code from flask import Flask, jsonify, abort, request app = Flask(__name__) books = [ { 'id': 1, 'title': u'论语', 'auther': u'孔子', 'price': 18 }, { 'id ...
分类:
其他好文 时间:
2021-01-26 12:15:52
阅读次数:
0
原题链接 1 class Solution: 2 ans = 0 3 def sumOfLeftLeaves(self, root: TreeNode) -> int: 4 def dfs(root,flag): 5 if not root:return 6 if not root.left and ...
分类:
其他好文 时间:
2021-01-26 11:58:52
阅读次数:
0
Alice and Bob received nn candies from their parents. Each candy weighs either 1 gram or 2 grams. Now they want to divide all candies among themselves ...
分类:
其他好文 时间:
2021-01-26 11:57:06
阅读次数:
0
原题链接 begin为最长不含重复字符的子字符串的起点 1 class Solution: 2 def lengthOfLongestSubstring(self, s: str) -> int: 3 begin,ans,dic = 0,0,{} 4 for index,c in enumerate ...
分类:
其他好文 时间:
2021-01-26 11:51:45
阅读次数:
0
思路分析 其实就是递归判断左树和右树,但是一些判断条件需要仔细思考下. cpp /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * ...
分类:
其他好文 时间:
2021-01-26 11:49:40
阅读次数:
0
许久没有写博客了,最近由于公司竞标需要,之前使用的第三方录屏软件,不是收费限制、就是录屏时长限制,而且2K、4K屏幕不能很好的兼容录制,于是我自己随手写了个基于Windows录屏小软件; 基础功能: 1、 可录制windows 视频 ; 2、 可录制windows音频; 3、 可录制windows麦 ...
参考网址: https://blog.csdn.net/zhurhyme/article/details/29349543 https://blog.csdn.net/shzy1988/article/details/50662462 cas 分为服务端,与客户端。那么客户端如何与服务端进行交互呢, ...
分类:
Web程序 时间:
2021-01-26 11:46:46
阅读次数:
0
EL 表达式 Expression Language 表达式语?,替代 JSP ??中数据访问时的复杂编码,可以?常便捷地取出域对 象(pageContext、request、session、application)中保存的数据,前提是?定要先 setAttribute, EL 就相当于在简化 ge ...
分类:
其他好文 时间:
2021-01-26 11:45:20
阅读次数:
0
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>div和span</title> </head> <!-- div和span div标签 层,块级元素,标签会自动换行。 常用于布局。 常用属性: align div元素中内容的对 ...
分类:
其他好文 时间:
2021-01-26 11:40:38
阅读次数:
0
pip 批量安装 将待安装的包按照下面的格式保存在 requests.txt 文件中 chardet==4.0.0 idna==2.10 requests==2.25.1 urllib3==1.26.2 在该文件的目录下运行下面的指令 pip install -r requests.txt ...
分类:
其他好文 时间:
2021-01-26 11:39:10
阅读次数:
0