最佳答案
val = ""
del val
if val is None:
print("null")
I ran above code, but got NameError: name 'val' is not defined.
How to decide whether a variable is null, and avoid NameError?