How do I write null?

Asked 2 years ago, Updated 2 years ago, 21 views

How do you express a null object in Python?

python

2022-09-22 16:50

1 Answers

In python, nullobject is expressed as None. When determining whether the object is None, we recommend that you write is as follows:

if foo is None:
    ...


2022-09-22 16:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.