Input data: part 1
This commit is contained in:
parent
4570cf8862
commit
4bebd07e82
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import sys
|
||||
|
||||
filename = sys.argv[1]
|
||||
|
||||
print(filename)
|
||||
|
||||
with open(filename) as file:
|
||||
text = file.readlines()
|
||||
|
||||
tokenised = [line.strip().split() for line in text]
|
||||
|
||||
videoCount = tokenised[0][0]
|
||||
endpointCount = tokenised[0][1]
|
||||
requestDescriptionCount = tokenised[0][2]
|
||||
cacheCount = tokenised[0][3]
|
||||
cacheSize = tokenised[0][4]
|
||||
|
||||
print(videoCount)
|
Loading…
Reference in New Issue