42 lines
586 B
Python
42 lines
586 B
Python
import sys
|
|
import time
|
|
|
|
#To add library folders from within the script
|
|
#sys.path.append("./site-packages")
|
|
|
|
|
|
import requests
|
|
r = requests.get('https://api.github.com', auth=('user', 'pass'))
|
|
print r.status_code
|
|
print r.headers['content-type']
|
|
r.close()
|
|
|
|
|
|
def calc2(a):
|
|
return a*2
|
|
time.sleep(2)
|
|
#import os
|
|
#print os.environ
|
|
#import calc
|
|
|
|
|
|
lib.load("calc")
|
|
lib.load("cls")
|
|
time.sleep(2)
|
|
for x in range(3):
|
|
print x
|
|
while(True):
|
|
print x*2
|
|
break
|
|
time.sleep(2)
|
|
x=cls()
|
|
x.execute()
|
|
print dev.take()
|
|
print dev2.val
|
|
time.sleep(1)
|
|
print calc(4)
|
|
|
|
|
|
"""
|
|
It lives!!!!
|
|
""" |