Skip to content
New issue

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

为什么空列表为 false ? #12

Open
chinesehuazhou opened this issue Dec 22, 2022 · 0 comments
Open

为什么空列表为 false ? #12

chinesehuazhou opened this issue Dec 22, 2022 · 0 comments

Comments

@chinesehuazhou
Copy link
Owner

chinesehuazhou commented Dec 22, 2022

False,None,0,空序列,空字典

1.c语言,0值为假,非0值为真
2.Perl所有空值为假(空字符串,空列表,空哈希),非空值为真
3.Ruby false,nil,0 为假,其它值为真

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant