随笔分类 -  不如重头再来

python MITx: 6.00.1x 计算机科学和Python编程导论 上课随意写写
不得不说的高精度计算
摘要:高精度计算,又或者说是大数算法,基础思想比较简单,就是用数组的每一个元素来表示每一位,加减注意进位,乘除注意因数的位数,计算原理就是竖式乘除法。 写在前面 本文学习并参考以下两个网站 https://oi-wiki.org/math/bignum/ https://www.cnblogs.com/l 阅读全文
posted @ 2022-02-14 23:28 混沌奇迹 阅读(449) 评论(0) 推荐(0)
Review CSS Selectors
摘要:Throughout this lesson, you learned how to select HTML elements with CSS and apply styles to them. Let's review what you learned: CSS can change the l 阅读全文
posted @ 2017-10-10 21:18 混沌奇迹 阅读(127) 评论(0) 推荐(0)
HTML Tags
摘要:While some tags have a very specific purpose, such as image and video tags, most tags are used to describe the content that they surround, which helps 阅读全文
posted @ 2017-09-20 23:20 混沌奇迹 阅读(533) 评论(0) 推荐(0)
html lesson one
摘要:Review Congratulations on completing the first lesson of HTML & CSS! You are well on your way to becoming a skilled web developer. Let's review what y 阅读全文
posted @ 2017-09-19 13:03 混沌奇迹 阅读(122) 评论(0) 推荐(0)
webvtt字幕转srt字幕的python程序(附改名程序)
摘要:最近写了两个比较简单的python程序,原有都是由于看公开课感觉比较费劲,一个是下载的视频无用的名字太长,另一个就是下载的vtt字幕播放器不识别,写了一个vtt转换成str字幕格式的文件vtt to str比较简单:大概就是打开一个vtt文件,把开头的webvtt删掉,把所有的"."替换成",",把... 阅读全文
posted @ 2016-01-19 20:06 混沌奇迹 阅读(4086) 评论(0) 推荐(0)
[转载]Core Elements of a Program
摘要:原文链接http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00sc-introduction-to-computer-science-and-programming-spring-2011/unit-1/... 阅读全文
posted @ 2015-06-09 20:24 混沌奇迹 阅读(239) 评论(0) 推荐(0)
反正也没人看
摘要:反正也没人会看,也没技术含量内容,随便乱写写。嘛,清明难得能放个假,对我这种特殊工种。不知毕业多少年,又看起了MIT python语言和计算机导论和深入理解计算机系统。都是正文看得挺快,一到习题就瞎火,CSAPP这种在第二章讲无符号数和补码的转换的,由我若鸡一般的水平还是能勉强一天看上4~5页的,今... 阅读全文
posted @ 2015-04-07 00:16 混沌奇迹 阅读(300) 评论(0) 推荐(0)
open read split
摘要:open 来打开文件, 其具体表现为 open('文件名或路径', 'r or w or other', 位置?)其生成一个文件类型的对象 file object.可写做 FILENAME = '文件名或路径'#File : fileFile = open(FILE, 'r', 0)read 来读取... 阅读全文
posted @ 2015-03-21 21:14 混沌奇迹 阅读(220) 评论(0) 推荐(0)