소스 검색

che ritmo

boyska 8 년 전
부모
커밋
2d14369d62
2개의 변경된 파일37개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      anni90.py
  2. 32 0
      infissa.py

+ 5 - 0
anni90.py

@@ -0,0 +1,5 @@
+from infissa import *
+
+not d^_^b
+
+(d^_^b) + [o_o] == 883

+ 32 - 0
infissa.py

@@ -0,0 +1,32 @@
+from subprocess import Popen, PIPE
+
+
+class Giappo:
+    def __init__(self, symbol):
+        self.s = symbol
+
+    def __xor__(self, other):
+        return Giappo(self.s + other.s)
+
+    def __add__(self, other):
+        if other == [o_o]:
+            return Musicona('883.mp4')
+
+class Musicona:
+    def __init__(self, url):
+        self.url = url
+
+    def __eq__(self, other):
+        if other == 883:
+            p = Popen(['mplayer', '-fs', self.url], stdout=PIPE, stderr=PIPE)
+            p.communicate()
+
+class Musicassetta:
+    def __init__(self):
+        pass
+
+d = Giappo('d')
+b = Giappo('b')
+_ = Giappo('_')
+o_o = Musicassetta()
+__all__ = ['d', '_', 'b', 'o_o']