filename = 'mynumbers.txt'
mynumbers = []
with open(filename) as f:
    for line in f:
        mynumbers.append([int(n) for n in line.strip().split(',')])
Python read in string from file and split it into values