Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/c06/c06_10.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
```python
def function():
if isinstance(a, b) or issubclass(b, a):
returnTrue
returnFalse
return True
return False
```

但是,对比这样,直接返回结果会更加明智:
Expand Down
4 changes: 2 additions & 2 deletions source/c06/c06_10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

def function():
if isinstance(a, b) or issubclass(b, a):
returnTrue
returnFalse
return True
return False

但是,对比这样,直接返回结果会更加明智:

Expand Down