diff --git a/source/c06/c06_10.md b/source/c06/c06_10.md index 06d4360..3710c9d 100644 --- a/source/c06/c06_10.md +++ b/source/c06/c06_10.md @@ -9,8 +9,8 @@ ```python def function(): if isinstance(a, b) or issubclass(b, a): - returnTrue - returnFalse + return True + return False ``` 但是,对比这样,直接返回结果会更加明智: diff --git a/source/c06/c06_10.rst b/source/c06/c06_10.rst index e8be3b4..34acca3 100644 --- a/source/c06/c06_10.rst +++ b/source/c06/c06_10.rst @@ -12,8 +12,8 @@ def function(): if isinstance(a, b) or issubclass(b, a): - returnTrue - returnFalse + return True + return False 但是,对比这样,直接返回结果会更加明智: