TrumpScript: Make Python great again

2016-11-11 11:32:16 +08:00
 Chrisplus

https://github.com/samshadwell/TrumpScript

Features

Our language includes several convenient features, perfect for any aspiring Presidential candidate including:

如何评价 python 开发者的创造力?

3526 次点击
所在节点    Python
10 条回复
guyskk
2016-11-11 14:34:33 +08:00
"Detected commie network, aborting."

![]( )
ryanzyy
2016-11-11 14:50:57 +08:00
十分幽默 已经 4.7k+ stars 了
ryanzyy
2016-11-11 14:54:44 +08:00
@guyskk

```

+ def no_commie_network() -> None:
+ """
+ Make sure we aren't running on commie Chinese networks.
+ """
+ freedom_host = "facebook.com"
+ commie_host = "alibaba.cn"
+ is_on_a_network = os.system("ping -c 1 {}".format(commie_host)) == 0
+ is_commie_network = os.system("ping -c 1 {}".format(freedom_host)) != 0
+ if is_on_a_network and is_commie_network:
+ raise Utils.SystemException("Detected commie network, aborting.")

```

是这样判断的
guyskk
2016-11-11 15:24:44 +08:00
@ryanzyy 汗。。我刚还上 vps 去运行。
改了下源码能正常运行了。看了一下 issue 里面的内容,没看懂这个幽默, Get 不到笑点。。。可以帮忙解释一下吗?
ethanlu
2016-11-11 15:33:24 +08:00
哈哈,有意思。
lhbc
2016-11-11 15:37:55 +08:00
这代码政治非常不正确。
iyeatse
2016-11-11 15:55:27 +08:00
soulmine
2016-11-12 21:29:47 +08:00
@guyskk 这本来就是个搞事的 你还真当轮子了么 ....... 笑点这东西 可能我说了你还是不懂笑点......
guyskk
2016-11-12 21:36:44 +08:00
@soulmine 没把它当轮子,我把里面的内容理解为恶搞或者是政治讽刺。没有经历过理解不到笑点。
soulmine
2016-11-12 23:11:26 +08:00
@guyskk 主要就是川普的几次演讲 还有他的政治观点 最后是他的口号之类的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/319782

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX