知行编程网知行编程网  2022-04-23 16:00 知行编程网 隐藏边栏 |   抢沙发  1 
文章评分 0 次,平均分 0.0

假如计算机是中国人发明的,那代码应该这么写

作者 | 菜鸟教程    来源 | 菜鸟教程

1、注释都不需要了,代码即是注释,注释即是代码

假如计算机是中国人发明的,那代码应该这么写

2、进制数应该是这样的
二进制:阴、阳
八进制:干qián、坤kūn、震zhèn、巽xùn、坎kǎn、离lí、艮gèn、兑duì
十六进制替换为十二进制:鼠、牛、虎、兔、龙、蛇、马、羊、猴、鸡、狗、猪
...

3、这时底层代码肯定就是

不过看下面的中文代码其实也是挺头疼的,也许是我们已经习惯英文字母:
假如计算机是中国人发明的,那代码应该这么写

4、学习语言,第一个输出的程序是
然后注释会使用以下代码:


假如计算机是中国人发明的,那代码应该这么写

项目发布前一定要大师开光,灵符、朱砂都用上,保佑顺利上线无 Bug:

假如计算机是中国人发明的,那代码应该这么写


5、Github 上还有一个很有意思的项目 PerlYuYan它将 Perl 翻译成了文言文。
PerlYuYan Github 地址是:https://github.com/audreyt/lingua-sinica-perlyuyan
先看看它的实例代码:
假如计算机是中国人发明的,那代码应该这么写
看完之后是不是后悔没好好学文言文了,然后我们再看下它的源码,也就明白其实作者是将许多指令改成以一个个中国汉字来表示,造成了文言语法的感觉。
假如计算机是中国人发明的,那代码应该这么写

再来看看它的五言诗句:


假如计算机是中国人发明的,那代码应该这么写



翻译成 Perl 就是:


假如计算机是中国人发明的,那代码应该这么写


6、最后,还有一点就是如果计算机是中国人创造的,韩国人很有可能会说最开始是他们想出来的。
<section class="" powered-by="xiumi.us" style="max-width: 100%;box-sizing: border-box;font-size: 16px;letter-spacing: 1px;word-wrap: break-word !important;"><section class="" powered-by="xiumi.us" style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"><section style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"><section class="" powered-by="xiumi.us"><section style="margin-right: 8px;margin-left: 8px;max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"><strong style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"></strong></section><pre style="letter-spacing: 0.544px;font-size: 16px;background-color: rgb(255, 255, 255);"><pre style="letter-spacing: 0.544px;"><section style="margin-right: 8px;margin-left: 8px;white-space: normal;color: rgb(0, 0, 0);font-family: -apple-system-font, system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;text-align: center;widows: 1;line-height: 1.75em;"><strong><span style="letter-spacing: 0.5px;font-size: 14px;"><strong style="font-size: 16px;letter-spacing: 0.544px;"><span style="letter-spacing: 0.5px;">—</span></strong>完<strong style="font-size: 16px;letter-spacing: 0.544px;"><span style="letter-spacing: 0.5px;font-size: 14px;"><strong style="font-size: 16px;letter-spacing: 0.544px;"><span style="letter-spacing: 0.5px;">—</span></strong></span></strong></span></strong></section><section style="white-space: normal;font-family: -apple-system-font, system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;text-align: center;widows: 1;color: rgb(255, 97, 149);"><section powered-by="xiumi.us"><section style="margin-top: 15px;margin-bottom: 25px;opacity: 0.8;"><section><section style="letter-spacing: 0.544px;"><section powered-by="xiumi.us"><section style="margin-top: 15px;margin-bottom: 25px;opacity: 0.8;"><section><p style="margin-right: 8px;margin-bottom: 15px;margin-left: 8px;padding-right: 0em;padding-left: 0em;color: rgb(127, 127, 127);font-family: sans-serif;font-size: 12px;line-height: 25.5938px;letter-spacing: 3px;"><span style="color: rgb(0, 0, 0);"><strong><span style="font-size: 16px;font-family: 微软雅黑;caret-color: red;">为您推荐</span></strong></span></p><section style="margin-right: 8px;margin-bottom: 5px;margin-left: 8px;padding-right: 0em;padding-left: 0em;min-height: 1em;color: rgb(127, 127, 127);font-family: sans-serif;font-size: 12px;line-height: 1.75em;letter-spacing: 0px;">微软黑科技:用玻璃片存储海量数据,千年不坏!<br  /></section><section style="margin-right: 8px;margin-bottom: 5px;margin-left: 8px;padding-right: 0em;padding-left: 0em;min-height: 1em;color: rgb(127, 127, 127);font-family: sans-serif;font-size: 12px;line-height: 1.75em;letter-spacing: 0px;">作为 IT 行业的过来人,你有什么话想对后辈说的?<br  /></section><section style="margin-right: 8px;margin-bottom: 5px;margin-left: 8px;padding-right: 0em;padding-left: 0em;min-height: 1em;color: rgb(127, 127, 127);font-family: sans-serif;font-size: 12px;line-height: 1.75em;letter-spacing: 0px;">程序员真的是太太太太太太太太难了!<br  /></section><section style="margin-right: 8px;margin-bottom: 5px;margin-left: 8px;padding-right: 0em;padding-left: 0em;min-height: 1em;color: rgb(127, 127, 127);font-family: sans-serif;font-size: 12px;line-height: 1.75em;letter-spacing: 0px;">深度学习必懂的13种概率分布<br  /></section><section style="margin-right: 8px;margin-bottom: 5px;margin-left: 8px;padding-right: 0em;padding-left: 0em;min-height: 1em;color: rgb(127, 127, 127);font-family: sans-serif;font-size: 12px;line-height: 1.75em;letter-spacing: 0px;">【微软】AI-神经网络基本原理简明教程</section></section></section></section></section></section></section></section></section>

本篇文章来源于: 深度学习这件小事

本文为原创文章,版权归所有,欢迎分享本文,转载请保留出处!

知行编程网
知行编程网 关注:1    粉丝:1
这个人很懒,什么都没写

你可能也喜欢

热评文章

发表评论

表情 格式 链接 私密 签到
扫一扫二维码分享