From 1cfdf2ff48085b7f521c80ef676088449c5c0f0e Mon Sep 17 00:00:00 2001 From: finchparker <31844879+finchparker@users.noreply.github.com> Date: Thu, 31 May 2018 15:25:40 +0900 Subject: [PATCH] Add files via upload --- texttoarray.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 texttoarray.py diff --git a/texttoarray.py b/texttoarray.py new file mode 100644 index 0000000..5bf043a --- /dev/null +++ b/texttoarray.py @@ -0,0 +1,6 @@ +l = [] +with open(' address ', 'r') as f: + for line in f: + line = line.strip() + if len(line) > 0: + l.append(list(map(int, line.split(',')))) \ No newline at end of file