Aug-18-2020, 02:55 PM
I wrote a very simple program which can retrieve some data I need. It's then written to a txt file. It looks like the following.
How can I do that? Any help would be much appreciated.
Tencentlh = ([0.675000011920929, 0.8550000190734863, 1.6699999570846558, 4.699999809265137, 6.800000190734863, 17.5, 24.079999923706055, 27.959999084472656, 30.059999465942383, 47.400001525878906, 93.0, 111.30000305175781, 132.10000610351562, 188.0, 251.39999389648438, 300.3999938964844, 325.20001220703125], [1.2699999809265137, 1.940000057220459, 5.550000190734863, 14.5600004196167, 14.40999984741211, 33.08000183105469, 38.599998474121094, 46.15999984741211, 56.20000076293945, 100.4000015258789, 134.89999389648438, 171.0, 220.8000030517578, 439.6000061035156, 476.6000061035156, 400.3999938964844, 564.0])Then I need to do further statistics. It would be great if I can just directly load the txt file as python codes, a bit like import a function from a module, so I can directly reuse the value "Tencentlh" and of course all the other values.
How can I do that? Any help would be much appreciated.