We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return practice ? '1 week' : 'never' 这个有问题…… c++和c应该都不支援单引号字符串语法,python虽然支持但是puthon没有?:的三元运算符… 到底哪些语言可以正确的使用上面这一句呢? javascript好像可以? 还有其他语言没……
The text was updated successfully, but these errors were encountered:
JavaScript:可以。
Sorry, something went wrong.
除此之外还有 Ruby 和 AWK。
python 有这个
return '1 week' if practice else 'never'
感觉更易读了
No branches or pull requests
return practice ? '1 week' : 'never'
这个有问题…… c++和c应该都不支援单引号字符串语法,python虽然支持但是puthon没有?:的三元运算符… 到底哪些语言可以正确的使用上面这一句呢? javascript好像可以? 还有其他语言没……
The text was updated successfully, but these errors were encountered: