@anonymous/

FittingIllustriousPaintprogram

Python 2.7

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8619299464518344","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"Y2xhc3MgVGhvdWdodChvYmplY3QpOgogIGRlZiBfX2luaXRfXyhzZWxmLCAqKmFyZ3MpOgogICAgc2VsZi5hcmdzID0gYXJncwogIApjbGFzcyBMYW5ndWFnZShvYmplY3QpOgogIGRlZiBfX2luaXRfXyhzZWxmLCAqKmFyZ3MpOgogICAgc2VsZi5hcmdzID0gYXJncwoKZGVmIGVuY29kZSh0aG91Z2h0KToKICAgICMgTUFHSUMKICAgIHJlc3BvbnNlID0gTGFuZ3VhZ2UoKQogICAgcmV0dXJuIHJlc3BvbnNlCgpkZWYgZGVjb2RlKGxhbmd1YWdlKToKICAjIE1BR0lDIAogIHJlc3BvbnNlID0gVGhvdWdodCgpCiAgcmV0dXJuIHJlc3BvbnNlCgpkZWYgdmFsaWRhdGlvbigpOgogIHRob3VnaHQgPSBUaG91Z2h0KCkKICBwcmludCh0aG91Z2h0ID09IGRlY29kZShlbmNvZGUodGhvdWdodCkpKQoKdmFsaWRhdGlvbigp"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Thought(object):
  def __init__(self, **args):
    self.args = args
  
class Language(object):
  def __init__(self, **args):
    self.args = args

def encode(thought):
    # MAGIC
    response = Language()
    return response

def decode(language):
  # MAGIC 
  response = Thought()
  return response

def validation():
  thought = Thought()
  print(thought == decode(encode(thought)))

validation()