小赖子的英国生活和资讯

测测你的幸运 – Linux Fortune-Teller

阅读 桌面完整版

LINUX 下有很好很好玩的命令,之前已经介绍过: figlet, rig, curl. 现在推荐另一个 命令 fortune 是用来随机显示一段(句)话的.fortune 在英文里就是幸运的意思.

这个命令可以不需要 参数 如果没有 可以通过 apt-get install fortune(Ubuntu) 或者 sudo yum install fortune(CentOS) 来安装.

敲入 fortune 得到一句随机的话

You look like a million dollars.  All green and wrinkled.

可以在浏览器里运行,地址是 https://helloacm.com/fortune

可以使用它的API: 地址是 https://helloacm.com/api/fortune/ (实现很简单 原理在这里;当然限制一秒访问一次)

英文:https://helloacm.com/get-a-random-and-hopefully-interesting-adage-online-fortune-teller-api/

强烈推荐

微信公众号: 小赖子的英国生活和资讯 JustYYUK

阅读 桌面完整版
Exit mobile version