-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nateve_driver.py
89 lines (62 loc) · 1.49 KB
/
nateve_driver.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
try:
from eggdriver import *
except ImportError:
print('ImportError: Failing to import eggdriver')
try:
from adam.types import *
except ImportError:
print('ImportError: Failing to import adam.types')
try:
import sys
except ImportError:
print('ImportError: Failing to import sys')
try:
import os
except ImportError:
print('ImportError: Failing to import os')
try:
import subprocess
except ImportError:
print('ImportError: Failing to import subprocess')
def iinput(prompt = '', default = ''):
return int(input(prompt, default))
def ninput(prompt = '', default = ''):
return float(input(prompt, default))
def binput(prompt = '', default = ''):
return bool(input(prompt, default))
def update_std():
subprocess.call([sys.executable, '-m', 'pip', 'install', 'eggdriver'])
class example01():
print("",end="")
update_std()
for i in range(2):
print(i)
install("matplotlib")
try:
print(2/0)
except:
print("xd")
pass
print("",end="")
example01()
def iinput(prompt = '', default = ''):
return int(input(prompt, default))
def ninput(prompt = '', default = ''):
return float(input(prompt, default))
def binput(prompt = '', default = ''):
return bool(input(prompt, default))
def update_std():
subprocess.call([sys.executable, '-m', 'pip', 'install', 'eggdriver'])
class example01():
print("",end="")
update_std()
for i in range(2):
print(i)
install("matplotlib")
try:
print(2/0)
except:
print("xd")
pass
print("",end="")
example01()