①英文题目 Remove all elements from a linked list of integers that have value val. Example: ②中文题目 删除链表中等于给定值 val 的所有节点。 示例: ③思路 1、加入链表为空,那么直接返回head。 2、考虑6, ...
分类:
其他好文 时间:
2019-09-24 14:27:17
阅读次数:
93
gevent模块 导入monkey补丁 调用monkey.patch_all() 这个函数会自动捕获程序中的阻塞状态, 以便gevent模块来进行协程间的切换 gevent.spawn(func) 使用spawn函数,返回值是对象,并且将func设置为协程,并发执行 调用返回对象绑定方法 PS:在这 ...
分类:
其他好文 时间:
2019-09-23 22:15:26
阅读次数:
147
1、修改/etc/sudoers,找到下面一行,在root下面添加普通用户,比如用户abc(前提是abc用户已存在,并设置好密码):AllowroottorunanycommandsanywhererootALL=(ALL)ALLabcALL=(ALL)ALL2、意思就是允许赋予用户abc跟root一样的权限,在任何地点执行任何命令。3、编辑ssh的配置文件,找到下面一行,把yes改为no,禁止r
分类:
系统相关 时间:
2019-09-23 13:40:12
阅读次数:
124
IIS操作步骤 直接装的wamp腾讯云主机控制台安全组里可以配置要开放的端口关闭防火墙 (C:\wamp\bin\apache\Apache2.4.4)打开httpd.conf文件require all denied改成: wamp用localhost可以访问,用公网ip无法访问用外网访问提示403 ...
分类:
Web程序 时间:
2019-09-23 13:35:13
阅读次数:
178
Given an array of strings, group anagrams together. Example: All inputs will be in lowercase. The order of your output does not matter. 解法: 首先遍历输入,同时对 ...
分类:
其他好文 时间:
2019-09-23 11:38:29
阅读次数:
92
Tongue Twister - Jessica 白洁 http://www.unsv.com/material/Food-Fashion-Fun/2016/06/22/ # 用于课后练习 Schwa Sound 英音 口语 ETJ English https://www.bilibili.com/ ...
分类:
其他好文 时间:
2019-09-23 09:59:46
阅读次数:
388
向表中插入数据,使用UNION和子查询INSERTINTOusersVALUES(1,‘a‘),VALUES(2,‘b‘),VALUES(3,‘c‘);或INSERTINTOusersSELECT1,‘a‘UNIONSELECT2,‘b‘UNIONSELECT3,‘c‘;将3号员工的last_name修改为‘drelexer‘UPDATEmy_employeesSETlast_na
分类:
数据库 时间:
2019-09-23 09:56:26
阅读次数:
124
Given a collection of distinct integers, return all possible permutations. Example: Solution 2: ...
分类:
其他好文 时间:
2019-09-22 23:11:46
阅读次数:
105
监控插件技术 服务器资源监控 指标数据分析 Jmeter插件管理器 插件管理包 http://jmeter-plugins.org/downloads/all/ 下载下来是一个jar包,放在apache-jmeter-4.0/lib/ext里面即可 JMeterPlugins-Extras.jar ...
分类:
其他好文 时间:
2019-09-22 20:03:42
阅读次数:
164
George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the origina ...
分类:
其他好文 时间:
2019-09-22 15:06:27
阅读次数:
68