原题链接 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
结论:偏置的方向为曲线方向与拉伸方向的向量叉乘。 在UF_MODL_create_extrusion帮助中有这么一句话:Note that the offset direction is determined by the cross product of the direction vector ...
分类:
其他好文 时间:
2021-01-25 10:41:13
阅读次数:
0
今天突然不能su到root了,root密码是正确的,但是就是显示密码错误还有mount也不能在一般用户里用了,不管有没有设备,都说没有权限到google上搜索了一番,发现了这样一段:---------------------------Try doing (note back-ticks not q ...
分类:
其他好文 时间:
2021-01-22 11:51:26
阅读次数:
0
一、开发模式 1、前后端不分离 前后端放在一块写 2、前后端分离 2.1、前端开发 2.2、后端开发 为前端提供API开发 永远返回HttpResponse 3、Django FBV、 CBV 3.1、FBV def users(request): if request.method == 'GET ...
分类:
其他好文 时间:
2021-01-21 10:44:00
阅读次数:
0
编写一个函数,输入是一个无符号整数(以二进制串的形式),返回其二进制表达式中数字位数为 '1' 的个数(第一个我弄得,但是二进制更好) class Solution(object): def hammingWeight1(self, n): """ :type n: int :rtype: int ...
分类:
其他好文 时间:
2021-01-20 11:45:10
阅读次数:
0
找了好久 原来使用jupyter需要安装两个东西 安装ipython conda install ipython 安装jupyter conda install jupyter 最后输入: ipython kernelspec install-self --user 这样才可以用jupyter 今天 ...
分类:
其他好文 时间:
2021-01-19 12:13:15
阅读次数:
0
self.info('清理成功%s' % (chr(0x1f600))) for i in range(0x1f600,0x1f650): print(chr(i),end=" ") if i%16==15: print() ...
分类:
编程语言 时间:
2021-01-19 12:06:12
阅读次数:
0
<!-- 导航组件 navigator 0 块级元素 默认会换行 可以直接加宽度和高度 1 url 要跳转的页面路径 绝对路径 相对路径 2 target 要跳转到当前的小程序 还是其他的小程序的页面 self 默认值 自己 小程序的页面 miniProgram 其他的小程序的页面 3 open-t ...
分类:
其他好文 时间:
2021-01-19 11:47:53
阅读次数:
0
需要实现三个方法: build(input_shape):定义你自己权重的地方,需要设置self.built=True.你可以通过调用super([Layer],self).build()来实现 call(x):定义层逻辑的地方。除非你需要支持mask,否则你只需要关系传递给call的第一个参数 c ...
分类:
其他好文 时间:
2021-01-19 11:46:49
阅读次数:
0
commit镜像 # docker commit 提交容器成为一个新的副本 # 命令和git原理类似 # docker commit -m="提交的描述信息" -a="作者" 容器id 目标镜像名:[TAG] 实战测试 # 启动Tomcat sudo docker run -it -p 3344:8 ...
分类:
其他好文 时间:
2021-01-18 10:43:41
阅读次数:
0