if not用法
摘要:python中判断变量是否为None三种写法: 1、if x is None 2、if not x 3、if not x is None 理解成 if not (x is None) 结果是和1相反的 python中None、false、""、0、[]、{}、()时,采用not 方法判断是相等的 n
阅读全文
posted @
2019-05-30 09:32
colorfulworld
阅读(3947)
推荐(0) 编辑
Redis相关问题
摘要:1、redis秒杀 2、redis分布式锁 3、哨兵模式 4、redis集群
阅读全文
posted @
2019-05-29 20:12
colorfulworld
阅读(105)
推荐(0) 编辑