hello world
this is my test
这是
一级标题
'''
File: _Dictionary_
Autor: yuen
time: 2022/10/2
'''
from typing import Counter
txt = open('./data.txt').read()
print(type(txt))
for s in " , . \n ' ": # 去除文档中标点符号
txt = txt.replace(s, "")
def count_way1(): # 字典特性查询字母出现次数
count = {}
for i in txt:
if i not in count:
count[i] = 1
else:
count[i] = count[i] + 1
print('字典方式计算data.txt字母统计:\n',count)
def count_way2 (): #counter函数统计字母次数
count1 = Counter(txt)
print('counter函数方式字母统计:\n',count1)
def count_way3(): # setdefault函数统计字母次数
count2 = {}
for char in txt:
count2.setdefault(char, 0)
count2[char] += 1
print('setdefault函数方式字母统计:\n',count2)
count_way1()
count_way2()
count_way3()
这是
二级标题
这是
三级标题
这是
四级标题
这是
五级标题
这是
六级标题
这会是 斜体 的文字
这会是 斜体 的文字
这会是 粗体 的文字
这会是 粗体 的文字
你也 组合 这些符号
这个文字将会被横线删除
- Item 1
- Item 2
- Item 2a
- Item 2b
- Item 1
- Item 2
- Item 3
- Item 3a
- Item 3b
正如 Kanye West 所说:
We’re living the future so
the present is our past.
如下,三个或者更多的
连字符
星号
下划线
我觉得你应该在这里使用<addr> 才对。
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
'''
File: _Dictionary_
Autor: yuen
time: 2022/10/2
'''
from typing import Counter
txt = open('./data.txt').read()
print(type(txt))
for s in " , . \n ' ": # 去除文档中标点符号
txt = txt.replace(s, "")
def count_way1(): # 字典特性查询字母出现次数
count = {}
for i in txt:
if i not in count:
count[i] = 1
else:
count[i] = count[i] + 1
print('字典方式计算data.txt字母统计:\n',count)
def count_way2 (): #counter函数统计字母次数
count1 = Counter(txt)
print('counter函数方式字母统计:\n',count1)
def count_way3(): # setdefault函数统计字母次数
count2 = {}
for char in txt:
count2.setdefault(char, 0)
count2[char] += 1
print('setdefault函数方式字母统计:\n',count2)
count_way1()
count_way2()
count_way3()
{.class1 .class}function add(x, y) { return x + y }
{.line-numbers}function add(x, y) { return x + y }
{highlightprint(hello world) print(hello world) print(hello world) print(hello world) print(hello world) print(hello world) print(hello world)
{highlightprint(hello world) print(hello world) print(hello world) print(hello world) print(hello world) print(hello world) print(hello world) print(hello world)
{highlightprint(hello world) print(hello world) print(hello world) print(hello world) print(hello world) print(hello world) print(hello world) print(hello world)
- @mentions, #refs, links, formatting, and
tagssupported - list syntax required (any unordered or ordered list supported)
- this is a complete item
- this is an incomplete item
| First Header | Second Header |
|---|---|
| Content from cell 1 | Content from cell 2 |
| Content in the first column | Content in the second column |
😄
:fa-car:
30^th^
H2O
Content [^1]
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
==marked==
$ f(x)= sinx + b$
{cmdimport matplotlib.pyplot as plt plt.plot([1,2,3, 4]) plt.show() # show figure
[^1]: Hi! This is a footnote