ответвлено от main/python-labs
8 строки
212 B
Python
8 строки
212 B
Python
def readList(filename):
|
|
numList = []
|
|
with open(filename, "r") as file:
|
|
for line in file:
|
|
for num in line.strip().split():
|
|
numList.append(float(num))
|
|
return numList
|