I Miss You Day and Night!

I Miss You Day and Night!

又是一年情人节,不知道大家有没有找到自己的另一半。今天我们玩一个好玩的:

牛曰:吾日夜思君!

R 语言

1
2
3
4
5
6
7
8
9
10
11
12
13
# 安装
# install.packages("cowsay")
library(cowsay)
say("I miss you day and night!", by = "cow")

#> -----
#> I miss you day and night!
#> ------
#> \ ^__^
#> \ (oo)\ ________
#> (__)\ )\ /\
#> ||------w|
#> || ||

Stata

GitHub 上有 Stata 实现 cowsay 的命令,在这里:https://github.com/mdroste/stata-cowsay,但是最近 GitHub 上 raw 开头的链接不能正常访问了,所以我把安装包放到了我的服务器上,可以通过下面的命令安装:

1
net install cowsay.pkg, from("https://czxa.top/pkg/stata-cowsay")
1
2
3
4
5
6
7
8
9
10
cowsay "I miss you day and night!"

*> ---------------------------
*> < I miss you day and night! >
*> ---------------------------
*> \ ^__^
*> \ (oo)\_______
*> (__)\ )\/\
*> ||----w |
*> || ||

Shell

1
2
3
4
5
6
7
8
9
10
11
12
# 安装
# brew install cowsay
$ cowsay "I miss you day and night!"

#> __________________________
#> < I miss you day and night! >
#> --------------------------
#> \ ^__^
#> \ (oo)\_______
#> (__)\ )\/\
#> ||----w |
#> || ||

搭配 lolcat 命令还可以实现彩虹的效果:

1
2
# pip install lolcat -i https://pypi.tuna.tsinghua.edu.cn/simple
$ cowsay "I miss you day and night!" | lolcat

![](/assets/czxa 2020-02-14 at 12.52.33 PM.png)

牛曰:昼有君则有梦,夜有梦乃有子。

1
cowsay "Dreams come with you in the daytime and dreams come with you at night. " | lolcat

![](/assets/czxa 2020-02-14 at 12.55.10 PM.png)

当然牛也可以说中文!

1
cowsay "昼有君则有梦,夜有梦乃有子。" | lolcat

![](/assets/czxa 2020-02-14 at 12.57.39 PM.png)

Python

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 可以从清华镜像源安装 cowsay
# pip install cowsay -i https://pypi.tuna.tsinghua.edu.cn/simple
from cowsay import cow
cow("I miss you day and night!")
#> _________________________
#> < I miss you day and night! >
#> =========================
#> \
#> \
#> ^__^
#> (oo)\_______
#> (__)\ )\/\
#> ||----w |
#> || ||

JavaScript

GitHub: https://github.com/piuccio/cowsay

1
2
3
4
5
6
7
8
9
10
11
12
// 使用 npm 安装
// npm install -g cowsay
cowthink I miss you day and night!

// ___________________________
// ( I miss you day and night! )
// ---------------------------
// o ^__^
// o (oo)\_______
// (__)\ )\/\
// ||----w |
// || ||

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×