首页 > 编程语言 >python not的用法

python not的用法

时间:2022-12-01 14:24:43浏览次数:35  
标签:None False python 元组 用法 字典


在python中 None, False, 空字符串"", 0, 空列表[], 空字典{}, 空元组()都相当于False ,即:
not None == not False == not '' == not 0 == not [] == not {} == not ()

  

not = !




标签:None,False,python,元组,用法,字典
From: https://www.cnblogs.com/bile/p/16941292.html

相关文章