使用 is not None 判斷不為 None 。 a = None if a is not None: print("a is not None") else: print("a is None") ...
確定! 回上一頁