Created
March 31, 2015 15:31
-
-
Save tioover/1f1343e4e186035d7273 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class People: | |
def __add__(other: People): | |
pass | |
a = People() | |
b = People() | |
a + b # 社会秩序乱了! | |
class Noble: | |
def __init__(someone: People): | |
self.person = someone | |
b = Noble(b) | |
a + b # 类型不同怎么谈恋爱! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment