phoenixlzx / the_start.md

236 stars 26 forks source link

我是来很严肃的来讨论文章中一个问题的 #2

Open onlyxuyang opened 9 years ago

onlyxuyang commented 9 years ago

return practice ? '1 week' : 'never' 这个有问题…… c++和c应该都不支援单引号字符串语法,python虽然支持但是puthon没有?:的三元运算符… 到底哪些语言可以正确的使用上面这一句呢? javascript好像可以? 还有其他语言没……

frantic1048 commented 9 years ago

JavaScript:可以。

lilydjwg commented 8 years ago

除此之外还有 Ruby 和 AWK。

waters00 commented 7 years ago

python 有这个

return '1 week' if practice else 'never'

感觉更易读了