python中判断变量是否为None三种写法: 1、if x is None 2、if not x 3、if not x is None 理解成if not (x is None) 结果是和1相反的.
確定! 回上一頁