随笔分类 -  基础

摘要:// ==UserScript== // @name Replace words // @namespace http://tampermonkey.net/ // @version 2024-09-18 // @description 替换网页中的指定关键字 // @author You // @ 阅读全文
posted @ 2024-09-19 13:51 夜歌乘年少 阅读(191) 评论(0) 推荐(0)
摘要:Linux: pstree Windows: ProcessExplorer or PS script:https://gist.github.com/atifaziz/9390344 or 阅读全文
posted @ 2019-08-05 17:41 夜歌乘年少 阅读(710) 评论(0) 推荐(0)
摘要:https://www.v2ex.com/t/576805 阅读全文
posted @ 2019-06-25 10:34 夜歌乘年少 阅读(227) 评论(0) 推荐(0)
摘要:来自多位GitHub网友在GitHub分享的几组学习课程项目, 学习课程包含清华,北大,浙大,中科大,上海交大, 等中国多所名校的英语,AI高数,人工智能等课程以及一些讲义考题。 如果你想了解这些大学的专业课程知识,可以看看这些项目,或许对你有帮助, 当然,如果你是这些大学的大学生,也欢迎你帮忙共同 阅读全文
posted @ 2019-04-20 00:02 夜歌乘年少 阅读(308) 评论(0) 推荐(0)
摘要:https://www.semiwiki.com/forum/content/7353-detailed-history-qualcomm.html 阅读全文
posted @ 2019-01-21 14:47 夜歌乘年少 阅读(193) 评论(0) 推荐(0)
摘要:1.安装matplotlib pip3 install matplotlib sudo apt install python3-tk 2.分段函数 3. 阅读全文
posted @ 2018-10-15 17:49 夜歌乘年少 阅读(672) 评论(0) 推荐(0)
摘要:is 对比 地址 == 对比 值 阅读全文
posted @ 2018-10-13 16:59 夜歌乘年少 阅读(160) 评论(0) 推荐(0)
摘要:直接赋值 传引用 copy 浅拷贝 list传值 值是引用 deepcopy list传值 值是值 阅读全文
posted @ 2018-10-12 11:24 夜歌乘年少 阅读(125) 评论(0) 推荐(0)
摘要:arr = [[a],[b]] set(arr) output: Traceback (most recent call last): File "<stdin>", line 1, in <module>TypeError: unhashable type: 'list' arr =[1,2] s 阅读全文
posted @ 2018-10-10 22:04 夜歌乘年少 阅读(1768) 评论(0) 推荐(0)
摘要:https://yuchengkai.cn/docs/zh/frontend/#%E5%86%85%E7%BD%AE%E7%B1%BB%E5%9E%8B https://github.com/taizilongxu/interview_python#19-%E5%8D%8F%E7%A8%8B 阅读全文
posted @ 2018-10-10 15:22 夜歌乘年少 阅读(206) 评论(0) 推荐(0)
摘要:temp = "".join(sorted(arr[i])) arr[i] = temp 阅读全文
posted @ 2018-10-10 15:18 夜歌乘年少 阅读(190) 评论(0) 推荐(0)
摘要:string[::-1] 阅读全文
posted @ 2018-10-10 10:39 夜歌乘年少 阅读(147) 评论(0) 推荐(0)
摘要:1.没有考虑i+2越界的问题 2.没有考虑结尾三个零导致 -5 3.没有考虑len(c)<2 导致 -5 阅读全文
posted @ 2018-09-30 17:59 夜歌乘年少 阅读(358) 评论(0) 推荐(0)
摘要:把字符串数字化之后应该从 i>0开始判断而不是 i>1 因此错了4个testcases。 阅读全文
posted @ 2018-09-30 16:07 夜歌乘年少 阅读(272) 评论(0) 推荐(0)
摘要:列表循环式:[x * x for x in range(1, 11)] 生成器:(x * x for x in range(1, 11))后者返回一个对象: >>> L = [x*x for x in range(10)] >>> L [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] >>> g = (x*x for x in range(10)) >>> g at... 阅读全文
posted @ 2018-09-27 16:02 夜歌乘年少 阅读(289) 评论(1) 推荐(0)
该文被密码保护。
posted @ 2018-09-27 10:01 夜歌乘年少 阅读(1) 评论(0) 推荐(0)
摘要:轻量化 抢占式 节约切换成本 阅读全文
posted @ 2018-09-26 17:55 夜歌乘年少 阅读(696) 评论(0) 推荐(0)
摘要:变量 作用域 全局变量( external linkage ) 定义在函数外 Int a=1 作用于整个工程 在连接两个文件时若有两个a会报错 Staic 函数外(internal linkage) 作用于本文件内 Static 函数内 作用于函数内 但在多次调用值不会丢失 extern:类似imp 阅读全文
posted @ 2018-09-26 17:54 夜歌乘年少 阅读(257) 评论(0) 推荐(0)
摘要:MIT 6.828 JOS 操作系统实验 阅读全文
posted @ 2018-09-13 17:12 夜歌乘年少 阅读(169) 评论(0) 推荐(0)
摘要:for Windows : for Linux : 阅读全文
posted @ 2018-08-09 10:13 夜歌乘年少 阅读(5320) 评论(0) 推荐(0)