106 字
1 分钟

Sample .md file

2016-03-08
浏览量 加载中...

A sample post with markdown.

Inline Highlighting#

Sample of inline highlighting sum = parseInt(num1) + parseInt(num2)

Code Blocks#

Some Javascript code

var num1, num2, sum
num1 = prompt('Enter first number')
num2 = prompt('Enter second number')
sum = parseInt(num1) + parseInt(num2) // "+" means "add"
alert('Sum = ' + sum) // "+" means combine into a string

Some Python code 🐍

def fib():
a, b = 0, 1
while True: # First iteration:
yield a # yield 0 to start with and then
a, b = b, a + b # a will now be 1, and b will also be 1, (0 + 1)
for index, fibonacci_number in zip(range(10), fib()):
print('{i:3}: {f:3}'.format(i=index, f=fibonacci_number))

文章分享

如果这篇文章对你有帮助,欢迎分享给更多人!

Sample .md file
https://blog.rice-awa.top/posts/code-sample/
作者
rice-awa
发布于
2016-03-08
许可协议
CC BY-NC-SA 4.0
最后更新于 2016-03-08,距今已过 3685 天

部分内容可能已过时

评论区

Profile Image of the Author
rice-awa
Hello, I'm rice-awa.
公告
欢迎来到我的博客!这是一则公告qwq
音乐
封面

音乐

暂未播放

0:00 0:00
暂无歌词
分类
标签
站点统计
文章
22
分类
10
标签
62
总字数
54,197
运行时长
0
最后活动
0 天前

目录