#通过索引获得某一个字符 #[n:m] #通过索引获得n~m-1字符#len() #获得str、tuple、list长度#for循环 #for 变量名 in 字符串: #将字符串中的每个元素按照指定分隔符进行拼接 #test=“我是风儿”#t=“ ”#v=t.join(test)#print(v) ...
分类:
其他好文 时间:
2020-07-05 15:38:16
阅读次数:
70
[#rotate2D,#rotate3D { width: 80px; height: 70px; color: white; position:relative; font-weight:bold; font-size:15px; padding:10px; float:left; margin-... ...
分类:
Web程序 时间:
2020-07-05 13:26:25
阅读次数:
120
我的代码居然过了。。 class Solution: def expand(l,s): r = False for item in l: left = item[0] right = item[1] if left>=1 and s[left-1]=='(' and right+1<len(s) a ...
分类:
其他好文 时间:
2020-07-05 00:40:40
阅读次数:
53
如果你问 DBA 同事为什么会出现这样的情况,他大概会告诉你:如果对字段做了函数计算,就用不上索引了,这是 MySQL 的规定。 第一个问题:能不能使用 join 语句? 如果可以使用 Index Nested-Loop Join 算法,也就是说可以用上被驱动表上的索引,其实是没问题的; 如果使用 ...
分类:
数据库 时间:
2020-07-04 19:00:13
阅读次数:
70
#盒模型-Box Model,用来对HTML元素布局时使用 组成部分:元素内容content、内边距padding、边框border、外边距margin #内边距padding padding-top/right/bottom/left 简写属性padding #边框border border-st ...
分类:
Web程序 时间:
2020-07-04 17:15:06
阅读次数:
70
启动kafka时,kafka进程无法启动,查阅log发现存在如下问题: 2020-07-04 10:44:54,659] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServ ...
分类:
其他好文 时间:
2020-07-04 15:27:07
阅读次数:
53
1. rstrip()方法,去掉字符串结尾空格 >>> name = "Sheep Core " >>> name.rstrip() 'Sheep Core' #已经去掉末尾空格 2. lstrip() 方法,去掉字符串开头空格 >>> name = " Sheep Core" >>> name.l ...
分类:
编程语言 时间:
2020-07-04 11:46:31
阅读次数:
83
1、原始样式: 2、鼠标滑过时: 3、鼠标选中点击某一行 1、先写html语言,当然还是应用的前几天相同的代码,可是多了一点点... <div id="testDiv" style="width: 60%;margin-left: 10%;margin-top: 50px;height: 1100p ...
分类:
Web程序 时间:
2020-07-03 21:33:17
阅读次数:
127
.fullscreen { position: fixed; top: 0; left: 0; margin: 0 auto; width: 100%; height: 100%; background-color: #1a1a1a; } .screen-content { width: 95%; ...
分类:
Web程序 时间:
2020-07-03 21:22:11
阅读次数:
78
# Definition for a binary tree node.class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = Nonea = TreeNode(1)b = TreeNode( ...
分类:
其他好文 时间:
2020-07-03 21:20:02
阅读次数:
56