@acwoss/

KlutzyComfortableUsers

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.3600984411399828","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHN5cwoKY2xhc3MgRm9vOgoKICBpZiBzeXMudmVyc2lvbl9pbmZvWzBdID09IDM6CiAgICBkZWYgc29tZXRoaW5nKHNlbGYpOgogICAgIHJldHVybiAnUHl0aG9uIDMnCiAgZWxzZToKICAgIGRlZiBzb21ldGhpbmcoc2VsZik6CiAgICAgIHJldHVybiAnUHl0aG9uIDInCgpmb28gPSBGb28oKQoKcHJpbnQoZm9vLnNvbWV0aGluZygpKQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys

class Foo:

  if sys.version_info[0] == 3:
    def something(self):
     return 'Python 3'
  else:
    def something(self):
      return 'Python 2'

foo = Foo()

print(foo.something())