摘要: 改用SMB2: 阅读全文
posted @ 2019-06-29 14:48 夜歌乘年少 阅读(4750) 评论(0) 推荐(0) 编辑
摘要: parameter: 把每个fsd隔离在自己的目录里 vdbench就不会冲突了。 阅读全文
posted @ 2019-06-27 14:49 夜歌乘年少 阅读(775) 评论(1) 推荐(0) 编辑
摘要: https://www.v2ex.com/t/576805 阅读全文
posted @ 2019-06-25 10:34 夜歌乘年少 阅读(191) 评论(0) 推荐(0) 编辑
摘要: debian系: /etc/network/interfaces rpm系: /etc/sysconfig/network-scripts/ifcfg-ensxxx(网卡名) 若无效: sudo ip route add 8.41.0.0/16 via 8.46.192.1 windows: 阅读全文
posted @ 2019-06-24 15:32 夜歌乘年少 阅读(213) 评论(0) 推荐(0) 编辑
摘要: test: 8K 100%随机 50%读 64并发 IOPS 55V5 1W2左右 Dorado6000 2W左右 阅读全文
posted @ 2019-06-24 15:28 夜歌乘年少 阅读(1382) 评论(0) 推荐(0) 编辑
摘要: $行首 ^行尾 阅读全文
posted @ 2019-06-24 15:19 夜歌乘年少 阅读(2215) 评论(0) 推荐(0) 编辑
摘要: 会打印所有发现的ip地址: 阅读全文
posted @ 2019-06-24 15:17 夜歌乘年少 阅读(1426) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-06-18 18:02 夜歌乘年少 阅读(4) 评论(1) 推荐(0) 编辑
摘要: 1.首先检查powershell版本: 应该为5.1 低版本升级补丁:https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6 WIN7S 阅读全文
posted @ 2019-06-15 11:00 夜歌乘年少 阅读(488) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-06-10 14:32 夜歌乘年少 阅读(2) 评论(1) 推荐(0) 编辑
摘要: https://docs.python.org/zh-cn/3/tutorial/datastructures.html 列表推导式提供了一个更简单的创建列表的方法。常见的用法是把某种操作应用于序列或可迭代对象的每个元素上,然后使用其结果来创建列表,或者通过满足某些特定条件元素来创建子序列。 例如, 阅读全文
posted @ 2019-06-06 17:34 夜歌乘年少 阅读(343) 评论(0) 推荐(0) 编辑
摘要: https://www.ietf.org/rfc/rfc1928.txt 阅读全文
posted @ 2019-06-06 11:48 夜歌乘年少 阅读(188) 评论(0) 推荐(0) 编辑
摘要: https://docs.python.org/zh-cn/3/tutorial/controlflow.html 4.7.5. Lambda 表达式¶ 可以用 lambda 关键字来创建一个小的匿名函数。这个函数返回两个参数的和: lambda a, b: a+b 。Lambda函数可以在需要函数 阅读全文
posted @ 2019-06-05 17:29 夜歌乘年少 阅读(387) 评论(0) 推荐(0) 编辑
摘要: https://docs.python.org/zh-cn/3/tutorial/datastructures.html#tut-loopidioms 当在字典中循环时,用 items() 方法可将关键字和对应的值同时取出 >>> >>> knights = {'gallahad': 'the pu 阅读全文
posted @ 2019-06-05 11:46 夜歌乘年少 阅读(259) 评论(0) 推荐(0) 编辑
摘要: https://www.transifex.com/python-doc/python-newest/ 阅读全文
posted @ 2019-06-04 19:49 夜歌乘年少 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 意外的简单,也可能是无耻的用了sort的缘故。 Runtime: 68 ms, faster than 96.70% of Python3 online submissions forMerge k Sorted Lists. Memory Usage: 17.3 MB, less than 19. 阅读全文
posted @ 2019-05-29 15:35 夜歌乘年少 阅读(172) 评论(0) 推荐(0) 编辑
摘要: REM:生成一个文件 del > Time.log echo > Time.log REM:获取系统日期及时间,同时将时间转换为8位(8:16:00-->08:16:00).写入文件。 :ABC set CurDate=%date:~0,10% set CurTime=%time% set hh=%CurTime:~0,2% if /i %hh% LSS 10 ... 阅读全文
posted @ 2019-05-29 09:36 夜歌乘年少 阅读(295) 评论(1) 推荐(0) 编辑
摘要: 参考资料:https://www.youtube.com/watch?v=sz1qaKt0KGQ DFS总结: 回到题目上: 树生成策略: )不能位于开头 [left == n right =n -1] 只有在前面有( 没有被匹配的时候(left大于right)的时候 才能加上 )[if left 阅读全文
posted @ 2019-05-29 00:27 夜歌乘年少 阅读(2889) 评论(1) 推荐(0) 编辑
摘要: 突然发现代码开头的注释取消注释就是ListNode的定义,可以本地调试了。。。 这道题注意两个链表可以同时为None. Runtime: 44 ms, faster than 86.67% of Python3 online submissions forMerge Two Sorted Lists 阅读全文
posted @ 2019-05-27 23:52 夜歌乘年少 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 链表题没法在本地打断点调试真的烦。。。不过好在这题简单 注意考虑要去除的元素在正数第一位的情况就好。 Runtime: 40 ms, faster than 88.15% of Python3 online submissions forRemove Nth Node From End of Lis 阅读全文
posted @ 2019-05-27 22:47 夜歌乘年少 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 参考资料:https://blog.csdn.net/puqutogether/article/details/45574903 写一个回溯法递归快要掉了半条命。。。什么时候菜到这种地步了。。。哎 注意在return前的那次循环后面要删除最后一个添加的字符,让循环可以继续,不会退出到主函数里。参考最 阅读全文
posted @ 2019-05-27 18:12 夜歌乘年少 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 出差没有状态,啃不动前面几道硬骨头,倒着做。 Ver.1: 时间复杂度很美,但是无法处理 1 2 2 2 5, 1 1 1 2 3这类输入: Ver.2: 其实只要去掉末尾的判断,然后不断缩短list就行了: Runtime: 2480 ms, faster than 100.00% of Pyth 阅读全文
posted @ 2019-05-26 23:21 夜歌乘年少 阅读(462) 评论(0) 推荐(0) 编辑
摘要: testcase311/313: 跑半小时的代码: 阅读全文
posted @ 2019-05-18 14:56 夜歌乘年少 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 方法有点蠢,没想好怎么不用循环取所有元素的前index位,就顺手这么写了。 Success Details Runtime: 32 ms, faster than 99.37% of Python3 online submissions forLongest Common Prefix. Memor 阅读全文
posted @ 2019-05-18 13:48 夜歌乘年少 阅读(174) 评论(1) 推荐(0) 编辑
摘要: 应该有比双循环更省时间的方法(in),可惜在客户现场网络不好,就用双循环做了。 Success Details Success Runtime: 96 ms, faster than 54.32% of Python3 online submissions forRoman to Integer. 阅读全文
posted @ 2019-05-15 19:21 夜歌乘年少 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 做好分类,注意边界。 Success Details Success Runtime: 52 ms, faster than 98.97% of Python3 online submissions forInteger to Roman. Memory Usage: 13.3 MB, less t 阅读全文
posted @ 2019-05-15 12:53 夜歌乘年少 阅读(212) 评论(1) 推荐(0) 编辑
摘要: 随手写一个循环,42testcase TLE。 从两侧向中央循环会漏条件,先放着吧。 阅读全文
posted @ 2019-05-10 10:30 夜歌乘年少 阅读(148) 评论(0) 推荐(0) 编辑
摘要: (leetcode给的范例已经不是模糊了 根本就是导向答题者往错误的地方想,还是要自己做好分类。 错误的思路,无法处理字符串中央的.*代表匹配0次: 阅读全文
posted @ 2019-05-04 20:39 夜歌乘年少 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 简单题,如果不转string要牺牲一些时间复杂度: Submission Detail 11509 / 11509 test cases passed. Status: Accepted Runtime: 128 ms Memory Usage: 13.2 MB Submitted: 1 minut 阅读全文
posted @ 2019-05-04 18:21 夜歌乘年少 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 分 空白 无符号 正号 负号 无意义符号分别讨论: 有点难看 应该写成函数分开的 Submission Detail 1079 / 1079 test cases passed. Status: Accepted Runtime: 44 ms Memory Usage: 13.3 MB Submit 阅读全文
posted @ 2019-05-03 12:27 夜歌乘年少 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 注意翻转后不要超限: Submission Detail 1032 / 1032 test cases passed. Status: Accepted Runtime: 40 ms Memory Usage: 13.2 MB Submitted: 0 minutes ago 1032 / 1032 阅读全文
posted @ 2019-04-30 18:43 夜歌乘年少 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Submission Detail 1158 / 1158 test cases passed. Status: Accepted Runtime: 76 ms Memory Usage: 13.4 MB Submitted: 2 hours, 17 minutes ago 1158 / 1158  阅读全文
posted @ 2019-04-29 14:12 夜歌乘年少 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 想了很多方法 搞轴对称,算对称轴,偶数都搞出了一堆0.5在那加加减减,最后发现在移轴之前可能就返回了。 testcase101: 后来发现稍微做下优化 提前return就能达到时间限制。 103 / 103 test cases passed. Accepted Runtime: 8876 ms M 阅读全文
posted @ 2019-04-27 21:26 夜歌乘年少 阅读(169) 评论(1) 推荐(0) 编辑
摘要: 开始觉得挺简单的 写完发现这个时间超限了: 用pycharm跑了下 要4秒,结果就是它自己。[testcase:85] 发现之前判断轴对称的方法太低级了 不用逐位判断 轴对称的前一半和后一半的逆序是同一字符串即可。 testcase:95 f比g多一个 testcase:98 单个testcase耗 阅读全文
posted @ 2019-04-27 00:21 夜歌乘年少 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 开始以为是求m n的中位数然后再求平均数, 被-2 -1 和 3 打脸 无耻的用下list.srot()轻松通过(内存还是惨不忍睹 Runtime: 60 ms, faster than 96.75% of Python3 online submissions for Median of Two S 阅读全文
posted @ 2019-04-26 10:49 夜歌乘年少 阅读(219) 评论(1) 推荐(0) 编辑
摘要: 只要注意点最长非重复字串出现在字符串末尾的情况就好,挺简单的。(时间和内存都惨不忍睹) 阅读全文
posted @ 2019-04-26 00:21 夜歌乘年少 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 我真是个大菜B*10 幸好leetcode的内存给的比较宽松 不然妥妥的内存超限。 Submission Detail 1563 / 1563 test cases passed. Status: Accepted Runtime: 88 ms Memory Usage: 13.3 MB Submi 阅读全文
posted @ 2019-04-25 20:04 夜歌乘年少 阅读(182) 评论(0) 推荐(0) 编辑
摘要: https://www.itechtics.com/download-google-chrome-builds-offline-installers/ 阅读全文
posted @ 2019-04-24 17:25 夜歌乘年少 阅读(1129) 评论(0) 推荐(0) 编辑
摘要: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6 阅读全文
posted @ 2019-04-24 15:50 夜歌乘年少 阅读(300) 评论(0) 推荐(0) 编辑
摘要: https://python3-cookbook.readthedocs.io/zh_CN/latest/c07/p03_attach_informatinal_matadata_to_function_arguments.html 阅读全文
posted @ 2019-04-22 20:09 夜歌乘年少 阅读(398) 评论(1) 推荐(0) 编辑