05 2022 档案

摘要:判断变量 python语言与其他语言不同,没有 NULL 类型,空用 none 来表示,但同时需要注意,none 是有数据类型的,type为‘Nonetype’。 使用if x is not None,if not (x is None)不直观,而if not x不适用于False, 空字符串"", 阅读全文
posted @ 2022-05-05 16:07 Oddpage 阅读(3167) 评论(0) 推荐(0)