cyrilcao

A new day has come
Home » 默认分类

你懂嘛

恐怖骑士交上了好运
恐怖骑士造成双倍损伤!
恐怖骑士造成36581点损伤。365个骑士死了。
骑士丧失理智了。

学习笔记

复习提纲

第一章:计算机组成结构

1.1计算机硬件组成

  • 运算器

算数逻辑单元ALU :自带1存储单位

累加寄存器AC :加减

数据缓存寄存器DR :暂时放置数据或内存

状态条件寄存器PSW(溢出)

  • 控制器

指令寄存器IR (暂存CPU执行指令)

程序计数器PC(存放指令执行地址)

地址寄存器AR

指令译码器ID

取指->分析:  
分析->执行:
  • 存储器

内存

外部存储

  • 输入设备
  • 输出设备

1.2 数的表示

  • 机器数
  • 原码 :+0(0 0000000) -0(1 0000000)
  • 反码 :正数的反码就是原码;负数的反码就是原码的基础上,除符号位,其他位按位取反

    0的反码 +0(0 0000000) -0(1 1111111)

  • 补码:正数的补码就是原码,负数的补码就是原码的基础上,除符号位,其他位按位取反,最后末尾+1,若有进位则进位。 0的补码就是 +0=-0= (0 0000000)
  • 移码:用于浮点运算的接码,无论正数负数,将该原码的补码的首位符号位取反得到移码

| 码制 | 定点整数 | 定点小数(同时除以 $$2^{n-1}$$) |
| ---- | :------------------------------- | -------------------------------------- |
| 原码 | $$-(2^{n-1}-1)\sim+(2^{n-1}-1)$$ | $$-(1-2^{-(n-1)})\sim+(1-2^{-(n-1)})$$ |
| 补码 | $$-(2^{n-1}-1)\sim+(2^{n-1}-1)$$ | $$-(1-2^{-(n-1)})\sim+(1-2^{-(n-1)})$$ |
| 反码 | $$-2^{n-1}\sim+(2^{n-1}-1)$$ | $$-1\sim+(1-2^{-(n-1)})$$ |
| 移码 | $$-2^{n-1} \sim+(2^{n-1}-1)$$ | $$-1\sim+(1-2^{-(n-1)})$$ |

| 例题 | 原码 | 反码 | 补码 | 移码 |

| ---- | --------- | --------- | --------- | --------- |
| 45   | 0 0101101 | 0 0101101 | 0 0101101 | 1 0101101 |
| -45  | 1 0101101 | 1 1010010 | 1 1010011 | 0 1010011 |

浮点数的运算

浮点数 $$N=F*2^E$$ ,E为阶乘,F为尾数; E影响范围,F影响精度

类似于科学10进制计数法,例如:85.125=$$0.85125*10^2$$

二进制,例如 101.011=$$0.101011*2^3$$

阶符阶码数符尾数(为小数)
0或1纯整数0或1纯小数

尾数为 负数1.0XXXX 正数 0.1XXXX

浮点数运算步骤

  1. 对阶 使两个数的阶码相同,小阶向大阶看齐
  2. 尾数计算 相加或相减
  3. 结果规格化,转化为带符号的尾数

1.3奇偶校验码

1.4 循环冗余校验码CRC

年三十要做的事情

sun
2021-02-09 13:25:23 星期二

<u>年三十要做的事</u>

  1. 要守岁嘛,所以年夜饭尽量一家人一起吃,其实正常来说,掌灯时分开始入席,也就是晚上7、8点钟开始,吃完之后呢,也可以一家人围在一起喝茶吃瓜子,一直到晚上
  2. 压岁钱呢,顾名思义,可以压住邪祟,所以长辈给晚辈红包,就要在年三十,而不是大年初一,否则就不要压岁了
  3. 过年祭祖这个,各地风俗不同,大家按照自家习惯的来就好,另外,其实按照道门正统说法来讲,神仙和先祖的祭祀,并不是太适合用血食,也就是荤腥肉类,多用香、花、水、果、灯之类的。当然这点怎么说呢,各地自己看着办吧

这里插一句,以前我问过老师,供这些瓜果,路过的仙家真会吃?
老师说不会,但是仙家属下的一些神将啊,下属有可能会感兴趣。但也不是真的吃,而是吸取一个香火,一个是瓜果中的精华。

所以如果祭拜到位,真有神将莅临,供过之后的瓜果我们再去吃,往往会淡而无味。

  1. 年三十,大门贴福字啥的,以及如果自家大门正对邻居家的大门,那么门上可以挂个中国结,趋利避害
  2. 年三十除夕夜呢,其实整夜屋内都要留个灯,通宵不熄,俗称“光年”,寓意来年前途光明。所以这个灯可以开在阳台或者客厅,卧室里当然可以关上,有灯亮着就行;

<u>改运催运</u>

  1. 年三十一整夜都要留灯,其实整个屋子越光明亮堂越好,把一切虚耗财物之气、阴邪之气,都照的无影无踪。那除此之外,最好用手电筒或者蜡烛,当然手电更方便啦,把整个家里的死角或者阴暗之处,比如床底、桌椅底下、什么柜子后面,都照一下
  2. 如果家里支持的话,最好把灯从年三十亮到年初五,特别是客厅、玄关这种地方,不要关
  3. 旺财运的,可以试试床底下放十张百元钞票,上面压一张红纸,初五前不可以拿掉;家里有米缸的,尽量填满,然后米缸里也放一个红包,里面塞11枚硬币,不多不少
  4. 如果身体健康状况不好,或者运气不太好的人,有大百解符的,可以年三十这天刷一下,如果没有的,可以考虑年三十晚上11点左右,把50度左右(可以点燃)的烈酒倒在盆里,点燃之后跨过去,男的先迈左脚,女生先迈右脚。甚至一些过期的药渣也能倒进去点燃,叫做“过火”

MD 模板

Editor.md

目录 (Table of Contents)

[TOCM]

[TOC]

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Heading 1 link Heading link

Heading 2 link Heading link

Heading 3 link Heading link

Heading 4 link Heading link Heading link Heading link

Heading 5 link Heading link
Heading 6 link Heading link

标题(用底线的形式)Heading (underline)

This is an H1

This is an H2

字符效果和横线等


删除线 <s>删除线(开启识别HTML标签时)</s>
斜体字 斜体字
粗体 粗体
粗斜体 粗斜体

上标:X2,下标:O2

缩写(同HTML的abbr标签)

即更长的单词或短语的缩写形式,前提是开启识别HTML标签时,已默认开启

The <abbr title="Hyper Text Markup Language">HTML</abbr> specification is maintained by the <abbr title="World Wide Web Consortium">W3C</abbr>.

引用 Blockquotes

引用文本 Blockquotes

引用的行内混合 Blockquotes

引用:如果想要插入空白换行即<br />标签,在插入处先键入两个以上的空格然后回车即可,普通链接

锚点与链接 Links

普通链接

普通链接带标题

直接链接:https://github.com

锚点链接

mailto:test.test@gmail.com

GFM a-tail link @pandao 邮箱地址自动链接 test.test@gmail.com www@vip.qq.com

@pandao

多语言代码高亮 Codes

行内代码 Inline code

执行命令:npm install marked

缩进风格

即缩进四个空格,也做为实现类似 <pre> 预格式化文本 ( Preformatted Text ) 的功能。

<?php
    echo "Hello world!";
?>

预格式化文本:

| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  | Content Cell  |
| Content Cell  | Content Cell  |

JS代码 

function test() {
    console.log("Hello world!");
}
 
(function(){
    var box = function() {
        return box.fn.init();
    };

    box.prototype = box.fn = {
        init : function(){
            console.log('box.init()');

            return this;
        },

        add : function(str) {
            alert("add", str);

            return this;
        },

        remove : function(str) {
            alert("remove", str);

            return this;
        }
    };
    
    box.fn.init.prototype = box.fn;
    
    window.box =box;
})();

var testBox = box();
testBox.add("jQuery").remove("jQuery");

HTML 代码 HTML codes

<!DOCTYPE html>
<html>
    <head>
        <mate charest="utf-8" />
        <meta name="keywords" content="Editor.md, Markdown, Editor" />
        <title>Hello world!</title>
        <style type="text/css">
            body{font-size:14px;color:#444;font-family: "Microsoft Yahei", Tahoma, "Hiragino Sans GB", Arial;background:#fff;}
            ul{list-style: none;}
            img{border:none;vertical-align: middle;}
        </style>
    </head>
    <body>
        <h1 class="text-xxl">Hello world!</h1>
        <p class="text-green">Plain text</p>
    </body>
</html>

图片 Images

Image:

Follow your heart.

图为:厦门白城沙滩

图片加链接 (Image + Link):

图为:李健首张专辑《似水流年》封面


列表 Lists

无序列表(减号)Unordered Lists (-)

  • 列表一
  • 列表二
  • 列表三

无序列表(星号)Unordered Lists (*)

  • 列表一
  • 列表二
  • 列表三

无序列表(加号和嵌套)Unordered Lists (+)

  • 列表一
  • 列表二

    • 列表二-1
    • 列表二-2
    • 列表二-3
  • 列表三

    • 列表一
    • 列表二
    • 列表三

有序列表 Ordered Lists (-)

  1. 第一行
  2. 第二行
  3. 第三行

GFM task list

  • [x] GFM task list 1
  • [x] GFM task list 2
  • [ ] GFM task list 3

    • [ ] GFM task list 3-1
    • [ ] GFM task list 3-2
    • [ ] GFM task list 3-3
  • [ ] GFM task list 4

    • [ ] GFM task list 4-1
    • [ ] GFM task list 4-2


绘制表格 Tables

项目价格数量
计算机$16005
手机$1212
管线$1234
--------------------------
Content CellContent Cell
Content CellContent Cell
First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell
Function nameDescription
help()Display the help window.
destroy()Destroy your computer!
Left-AlignedCenter AlignedRight Aligned
col 3 issome wordy text$1600
col 2 iscentered$12
zebra stripesare neat$1
ItemValue
Computer$1600
Phone$12
Pipe$1

特殊符号 HTML Entities Codes

© & ¨ ™ ¡ £
& < > ¥ € ® ± ¶ § ¦ ¯ « ·

X² Y³ ¾ ¼ × ÷ »

18ºC " '

[========]

Emoji表情 :smiley:

Blockquotes :star:

GFM task lists & Emoji & fontAwesome icon emoji & editormd logo emoji :editormd-logo-5x:

  • [x] :smiley: @mentions, :smiley: #refs, [links](), formatting, and tags supported :editormd-logo:;
  • [x] list syntax required (any unordered or ordered list supported) :editormd-logo-3x:;
  • [x] [ ] :smiley: this is a complete item :smiley:;
  • [ ] []this is an incomplete item test link :fa-star: @pandao;
  • [ ] [ ]this is an incomplete item :fa-star: :fa-gear:;

    • [ ] :smiley: this is an incomplete item test link :fa-star: :fa-gear:;
    • [ ] :smiley: this is :fa-star: :fa-gear: an incomplete item test link;

反斜杠 Escape

*literal asterisks*

[========]

科学公式 TeX(KaTeX)

$$E=mc^2$$

行内的公式$$E=mc^2$$行内的公式,行内的$$E=mc^2$$公式。

$$x > y$$

$$\(\sqrt{3x-1}+(1+x)^2\)$$

$$\sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f))$$

多行公式:

\displaystyle
\left( \sum\_{k=1}^n a\_k b\_k \right)^2
\leq
\left( \sum\_{k=1}^n a\_k^2 \right)
\left( \sum\_{k=1}^n b\_k^2 \right)
\displaystyle 
    \frac{1}{
        \Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{
        \frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {
        1+\frac{e^{-6\pi}}
        {1+\frac{e^{-8\pi}}
         {1+\cdots} }
        } 
    }
f(x) = \int_{-\infty}^\infty
    \hat f(\xi)\,e^{2 \pi i \xi x}
    \,d\xi

分页符 Page break

Print Test: Ctrl + P

[========]

绘制流程图 Flowchart

st=>start: 用户登陆
op=>operation: 登陆操作
cond=>condition: 登陆成功 Yes or No?
e=>end: 进入后台

st->op->cond
cond(yes)->e
cond(no)->op

[========]

绘制序列图 Sequence Diagram

Andrew->China: Says Hello 
Note right of China: China thinks\nabout it 
China-->Andrew: How are you? 
Andrew->>China: I am good thanks!

End

plugin test

Markdown plugin test

print "test hello world"

ggooood

print "hello world"

title 2

function test() {
    console.log("Hello world!");
}

titile 3

function test() {
    console.log("Hello world!");
}

JS代码 

function test() {
    console.log("Hello world!");
}
 
(function(){
    var box = function() {
        return box.fn.init();
    };

    box.prototype = box.fn = {
        init : function(){
            console.log('box.init()');

            return this;
        },

        add : function(str) {
            alert("add", str);

            return this;
        },

        remove : function(str) {
            alert("remove", str);

            return this;
        }
    };
    
    box.fn.init.prototype = box.fn;
    
    window.box =box;
})();

var testBox = box();
testBox.add("jQuery").remove("jQuery");

heading

  Life is fantastic
More
© 2025 cyrilcao版权所有 | 备案号-沪ICP备2021009045号-1
驱动Typecho - touchit主题 访问次数:184685