欢迎使用 Typecho

如果您看到这篇文章,表示您的 blog 已经安装成功.<!--more-->

测试

图片

jpg

ジャケットイラストカード裏.jpg

png

ジャケットイラストカード裏removebgpreview.png

gif

六花.gif

bmp

lena1.bmp

页面引用

表格

短文 长文
/usr/local/ 管理员在本机自行安装自己下载的软件(非distribution默认提供者),建议安装到此目录, 这样会比较便于管理。举例来说,你的distribution提供的软件较旧,你想安装较新的软件但又不想移除旧版, 此时你可以将新版软件安装于/usr/local/目录下,与原先的旧版软件有所分别。 可以自行到/usr/local去看看,该目录下也是具有bin, etc, include, lib…的次目录的

代码高亮

C

1
2
3
4
5
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}

C++

1
2
3
4
5
#include <iostream>
int main() {
std::cout << "Hello World!";
return 0;
}

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CShapePractice
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("hello world");
Console.ReadLine();
}
}
}

Java

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import java.io.ByteArrayOutputStream;
import java.io.OutputStreamWriter;
import java.nio.charset.Charset;
class Test {
public static void main(String[] args) {
System.out.println("Default Charset=" + Charset.defaultCharset());
System.out.println("file.encoding=" + System.getProperty("file.encoding"));
System.out.println("Default Charset=" + Charset.defaultCharset());
System.out.println("Default Charset in Use=" + getDefaultCharSet());
}
private static String getDefaultCharSet() {
OutputStreamWriter writer = new OutputStreamWriter(new ByteArrayOutputStream());
String enc = writer.getEncoding();
return enc;
}
}

Python

1
2
def fun(x,y):
return x+y

bash

1
2
3
4
5
6
set a=0
setlocal EnableDelayedExpansion
for %%n in (*.jpg) do (
set /A a+=1
rename "%%n" "!a!.jpg"
)

shell

1
2
#!/bin/bash
echo "Hello World"

ASM

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
DATAS SEGMENT
STR DB "please input a string:$"
BUF DB 20
DB ?
DB 20 DUP (?)
CRLF DB 0AH,0DH,"$"
DATAS ENDS

STACKS SEGMENT STACK
DB 200 DUP(?)
STACKS ENDS

CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START: MOV AX,DATAS
MOV DS,AX
LEA DX,STR
MOV AH,9
INT 21H
MOV AH,10
LEA DX,BUF
INT 21H
LEA DX,CRLF
MOV AH,9
INT 21H
MOV CL,BUF+1
LEA SI,BUF+2
NEXT: MOV DL,[SI]
MOV AH,2
INT 21H
INC SI
DEC CL
JNZ NEXT;此处输入代码段代码
MOV AH,4CH
INT 21H
CODES ENDS
END START

HTML

1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>hello world</h1>
</body>
</html>

CSS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
header {
background-color:black;
color:white;
text-align:center;
height:25px;
padding:0px ;
}
aside {
position: fixed; top: 0px;left:0px;
float:left;
background-color:white;
color:black;
width: 250px;
text-align:center;
padding:0px;
}
nav {
position: fixed ;top: 50px ;left:300px;
line-height:40px;
background-color:white;
color:black;
height:400px;
width:150px;
float:left;
padding:10px;
}
section {
position: relative; top: 0px;left:380px;
width:1200px;
float:left;
padding:100px;
}
footer {
background-color:black;
color:white;
clear:both;
text-align:center;
padding:5px;
}
#index_intro{
width: 20;
padding:5px;
background-color:black;
color:white;
left:100px;
}
a{text-decoration: none;}
a:visited{text-decoration: none;}

JavaScript

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var list = document.getElementsByClassName("addon");
var article = document.getElementsByTagName("article");
for (var i = 0; i < list.length; i++) {
list[i].number = i;
list[i].onclick = function () {
console.log(this.number);
for (var j = 0; j < article.length; j++) {
list[j].classList.remove("on");
article[j].style.display = "none";
if (this.number == j) {
list[this.number].classList.add("on");
article[this.number].style.display = "block";
continue;
}
}
}
}

目录层3

层4

层5
层6