-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRandomTest.py
More file actions
37 lines (35 loc) · 1.02 KB
/
Copy pathRandomTest.py
File metadata and controls
37 lines (35 loc) · 1.02 KB
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
# from datetime import datetime
# import timeit
#
# now = datetime.now()
# currentTime = now.strftime("%H:%M:%S")
#
# splitCurrentTime = []
# for temp in currentTime.split(':'):
# splitCurrentTime.append(int(temp))
# setupTime = """
# from datetime import datetime
# now = datetime.now()
# currentTime = now.strftime("%H:%M:%S")
# """
#
# slow = """
# splitCurrentTime = []
# for temp in currentTime.split(':'):
# splitCurrentTime.append(int(temp))
# """
#
# fast = "fastSplitCurrent = [int(temp) for temp in currentTime.split(':')]"
#
# print(timeit.timeit(stmt=slow, setup=setupTime, number=10000000))
# print(timeit.timeit(stmt=fast, setup=setupTime, number=10000000))
#
# fastSplitCurrent = [int(temp) for temp in currentTime.split(':')]
# # print(fastSplitCurrent)
# # print(splitCurrentTime == fastSplitCurrent)
with open("GTCredentials.txt", "r") as f:
combinedUserPassword = f.read().splitlines()
username = combinedUserPassword[0]
password = combinedUserPassword[1]
print(repr(username))
print(repr(password))