除了使用is关键字,还可以使用==运算符来检查一个变量是否等于None。例如:. ```python x = None if x == None: print("x是空值") ```. 3. 使用if语句.
確定! 回上一頁