Last active
August 29, 2015 14:01
-
-
Save st98/a6fb4f2e09b9220d7f3e to your computer and use it in GitHub Desktop.
ゆの in Python 3。 http://d.hatena.ne.jp/keyword/%A4%E6%A4%CE%20in%20language
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 Barrette(object): | |
def __truediv__(self, other): | |
return other | |
def __lt__(self, other): | |
print(other) | |
def __str__(self): | |
return 'ひだまりスケッチ×365 来週も見てくださいね!' | |
def main(): | |
X = 来週も見てくださいね = _ = Barrette() | |
X / _ / X < 来週も見てくださいね | |
if __name__ == '__main__': | |
main() |
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
try: | |
X / _ / X < 来週も見てくださいね | |
except NameError: | |
print('ひだまりスケッチ×365 来週も見てくださいね!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment