Skip to content

为什么空列表为 false ? #12

@chinesehuazhou

Description

@chinesehuazhou

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions