EOF while scanning triple-quoted string literal in python 3.5 window 7 -


i run code

  data_dir = r"c:\users\administrator\desktop\gorn" fld = open(os.path.join(data_dir, "ld2011_2014.txt"), "rb") data = [] cid = 250  line in fld:     if line.startswith(""";"):         continue     cols = [float(re.sub(",", ".", x)) x in             line.strip().split(";")[1:]]     data.append(cols[cid]) fld.close()  num_entries = 1000 plt.plot(range(num_entries), data[0:num_entries]) plt.ylabel("electricity consumption") plt.xlabel("time (1pt = 15 mins)") plt.show() np.save(os.path.join(data_dir, "ld_250.npy"), np.array(data)) 

and got error "eof while scanning triple-quoted string literal"


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -