https://github.com/samshadwell/TrumpScript
Our language includes several convenient features, perfect for any aspiring Presidential candidate including:
True
and False
, we have the keywords fact
and lie
.America is great
.如何评价 python 开发者的创造力?
1
guyskk 2016-11-11 14:34:33 +08:00
"Detected commie network, aborting."
![]( ) |
2
ryanzyy 2016-11-11 14:50:57 +08:00
十分幽默 已经 4.7k+ stars 了
|
3
ryanzyy 2016-11-11 14:54:44 +08:00 1
@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.") ``` 是这样判断的 |
4
guyskk 2016-11-11 15:24:44 +08:00
@ryanzyy 汗。。我刚还上 vps 去运行。
改了下源码能正常运行了。看了一下 issue 里面的内容,没看懂这个幽默, Get 不到笑点。。。可以帮忙解释一下吗? |
5
ethanlu 2016-11-11 15:33:24 +08:00
哈哈,有意思。
|
6
lhbc 2016-11-11 15:37:55 +08:00 via iPhone
这代码政治非常不正确。
|
7
iyeatse 2016-11-11 15:55:27 +08:00 via iPhone 1
|