向大佬求助,想编个程序算日降水量
现在有一个文本文件,是不同站点不同年份每日的逐小时降水量,想编个程序将逐小时的降水量加和成每日的降水量,原文件和我编的程序如下,有点着急,请大佬帮忙找一下问题,万分感谢{:7_129:}f = open('逐小时降水.txt')
number = []
year = []
mouth = []
day = []
total = []
tp = []
count = 0.0
for each_line in f:
if each_line[:12] !="区站号":
(plot,nian,yue,ri,shi,num) = each_line.split()
if plot == 'M1151':
year.append(nian)
mouth.append(yue)
day.append(ri)
if num == '/':
num = 0.0
total.append(float(num))
for i in range(len(each_line)):
if year == year and mouth == mouth and day== day:
count = count + total
else :
tp.append(count+total)
count = 0
file_name = '日降水量'+'.txt'
tp_file = open(file_name,'w')
tp_file.writelines(str(tp))
tp_file.close()
f.close()
文件内容你应该复制发上来~ Twilight6 发表于 2020-5-25 11:11
文件内容你应该复制发上来~
这个降水文件规定是保密的,实在不能贴上来,只能发部分截图,不好意思 AisakaTaiga 发表于 2020-5-25 11:14
这个降水文件规定是保密的,实在不能贴上来,只能发部分截图,不好意思
对丫 就是你的部分截图内容就够了一小部分的样本 本帖最后由 AisakaTaiga 于 2020-5-25 11:25 编辑
Twilight6 发表于 2020-5-25 11:15
对丫 就是你的部分截图内容就够了一小部分的样本
我贴了个截图,看不到吗~ 那我再发一份吧
https://xxx.ilovefishc.com/forum/202005/25/110921h13w18312l0r3l3x.png AisakaTaiga 发表于 2020-5-25 11:24
我贴了个截图,看不到吗~ 那我再发一份吧
不用了 我自己手打了三行数据
你的代码 :
if each_line[:12] != "区站号"
是不可能等于 区站号的吧 AisakaTaiga 发表于 2020-5-25 11:24
我贴了个截图,看不到吗~ 那我再发一份吧
哈哈 你或许没懂我的意思 ,我之前说的意思是样白数据发一部分好复制
你发图片我们复制不了,自己打字总和你原本数据有些差距吧
Twilight6 发表于 2020-5-25 11:30
不用了 我自己手打了三行数据
你的代码 :
这行代码就是想从第二行开始做,第一行是个抬头想跳过~ 那个应该怎么编写呢 AisakaTaiga 发表于 2020-5-25 11:14
这个降水文件规定是保密的,实在不能贴上来,只能发部分截图,不好意思
你发截图什么用都没有,不如改几个数发上来。
而且你发截图本身就泄密了。 AisakaTaiga 发表于 2020-5-25 11:33
这行代码就是想从第二行开始做,第一行是个抬头想跳过~ 那个应该怎么编写呢
区站号年份月份日期时次定时自记降水(mm)
M11512010 1 1 21 0.0
M11512010 1 1 22 0.0
M11512010 1 1 23 0.0
数据类型差不多是这样的吧? 这个是一小部分的数据,单站的1月份逐小时降水量
区站号年份 月份 日期 时次 定时自记降水(mm)
M1151 2010 1 1 21 0.0
M1151 2010 1 1 22 0.0
M1151 2010 1 1 23 0.0
M1151 2010 1 1 0 0.0
M1151 2010 1 1 1 0.0
M1151 2010 1 1 2 0.0
M1151 2010 1 1 3 0.0
M1151 2010 1 1 4 0.0
M1151 2010 1 1 5 0.0
M1151 2010 1 1 6 0.0
M1151 2010 1 1 7 0.0
M1151 2010 1 1 8 0.0
M1151 2010 1 1 9 0.0
M1151 2010 1 1 10 0.0
M1151 2010 1 1 11 0.0
M1151 2010 1 1 12 0.0
M1151 2010 1 1 13 0.0
M1151 2010 1 1 14 0.0
M1151 2010 1 1 15 0.0
M1151 2010 1 1 16 0.0
M1151 2010 1 1 17 0.0
M1151 2010 1 1 18 0.0
M1151 2010 1 1 19 0.0
M1151 2010 1 1 20 0.0
M1151 2010 1 2 21 0.0
M1151 2010 1 2 22 0.0
M1151 2010 1 2 23 0.0
M1151 2010 1 2 0 0.0
M1151 2010 1 2 1 0.0
M1151 2010 1 2 2 0.0
M1151 2010 1 2 3 0.0
M1151 2010 1 2 4 0.0
M1151 2010 1 2 5 0.0
M1151 2010 1 2 6 0.0
M1151 2010 1 2 7 0.0
M1151 2010 1 2 8 0.0
M1151 2010 1 2 9 0.0
M1151 2010 1 2 10 0.0
M1151 2010 1 2 11 0.0
M1151 2010 1 2 12 0.0
M1151 2010 1 2 13 0.0
M1151 2010 1 2 14 0.0
M1151 2010 1 2 15 0.0
M1151 2010 1 2 16 0.0
M1151 2010 1 2 17 0.0
M1151 2010 1 2 18 0.0
M1151 2010 1 2 19 0.0
M1151 2010 1 2 20 0.0
M1151 2010 1 3 21 0.0
M1151 2010 1 3 22 0.0
M1151 2010 1 3 23 0.0
M1151 2010 1 3 0 0.0
M1151 2010 1 3 1 0.0
M1151 2010 1 3 2 0.2
M1151 2010 1 3 3 0.0
M1151 2010 1 3 4 0.1
M1151 2010 1 3 5 0.0
M1151 2010 1 3 6 0.0
M1151 2010 1 3 7 0.0
M1151 2010 1 3 8 0.0
M1151 2010 1 3 9 0.0
M1151 2010 1 3 10 0.0
M1151 2010 1 3 11 0.0
M1151 2010 1 3 12 0.0
M1151 2010 1 3 13 0.0
M1151 2010 1 3 14 0.0
M1151 2010 1 3 15 0.0
M1151 2010 1 3 16 0.0
M1151 2010 1 3 17 0.0
M1151 2010 1 3 18 0.0
M1151 2010 1 3 19 0.0
M1151 2010 1 3 20 0.0
M1151 2010 1 4 21 0.0
M1151 2010 1 4 22 0.0
M1151 2010 1 4 23 0.0
M1151 2010 1 4 0 0.0
M1151 2010 1 4 1 0.0
M1151 2010 1 4 2 0.0
M1151 2010 1 4 3 0.0
M1151 2010 1 4 4 0.0
M1151 2010 1 4 5 0.0
M1151 2010 1 4 6 0.0
M1151 2010 1 4 7 0.0
M1151 2010 1 4 8 0.0
M1151 2010 1 4 9 0.0
M1151 2010 1 4 10 0.0
M1151 2010 1 4 11 0.1
M1151 2010 1 4 12 0.0
M1151 2010 1 4 13 0.0
M1151 2010 1 4 14 0.0
M1151 2010 1 4 15 0.0
M1151 2010 1 4 16 0.0
M1151 2010 1 4 17 0.0
M1151 2010 1 4 18 0.0
M1151 2010 1 4 19 0.0
M1151 2010 1 4 20 0.0
M1151 2010 1 5 21 0.0
M1151 2010 1 5 22 0.0
M1151 2010 1 5 23 0.0
M1151 2010 1 5 0 0.0
M1151 2010 1 5 1 0.0
M1151 2010 1 5 2 0.0
M1151 2010 1 5 3 0.0
M1151 2010 1 5 4 0.0
M1151 2010 1 5 5 0.0
M1151 2010 1 5 6 0.0
M1151 2010 1 5 7 0.0
M1151 2010 1 5 8 0.0
M1151 2010 1 5 9 0.0
M1151 2010 1 5 10 0.0
M1151 2010 1 5 11 0.0
M1151 2010 1 5 12 0.0
M1151 2010 1 5 13 0.0
M1151 2010 1 5 14 0.0
M1151 2010 1 5 15 0.0
M1151 2010 1 5 16 0.0
M1151 2010 1 5 17 0.0
M1151 2010 1 5 18 0.0
M1151 2010 1 5 19 0.0
M1151 2010 1 5 20 0.0
M1151 2010 1 6 21 0.0
M1151 2010 1 6 22 0.0
M1151 2010 1 6 23 0.0
M1151 2010 1 6 0 0.0
M1151 2010 1 6 1 0.0
M1151 2010 1 6 2 0.0
M1151 2010 1 6 3 0.0
M1151 2010 1 6 4 0.0
M1151 2010 1 6 5 0.0
M1151 2010 1 6 6 0.0
M1151 2010 1 6 7 0.0
M1151 2010 1 6 8 0.0
M1151 2010 1 6 9 0.0
M1151 2010 1 6 10 0.0
M1151 2010 1 6 11 0.0
M1151 2010 1 6 12 0.0
M1151 2010 1 6 13 0.0
M1151 2010 1 6 14 0.0
M1151 2010 1 6 15 0.0
M1151 2010 1 6 16 0.0
M1151 2010 1 6 17 0.0
M1151 2010 1 6 18 0.0
M1151 2010 1 6 19 0.0
M1151 2010 1 6 20 0.0
M1151 2010 1 7 21 0.0
M1151 2010 1 7 22 0.0
M1151 2010 1 7 23 0.0
M1151 2010 1 7 0 0.0
M1151 2010 1 7 1 0.0
M1151 2010 1 7 2 0.0
M1151 2010 1 7 3 /
M1151 2010 1 7 4 /
M1151 2010 1 7 5 /
M1151 2010 1 7 6 /
M1151 2010 1 7 7 /
M1151 2010 1 7 8 /
M1151 2010 1 7 9 /
M1151 2010 1 7 10 /
M1151 2010 1 7 11 /
M1151 2010 1 7 12 /
M1151 2010 1 7 13 /
M1151 2010 1 7 14 /
M1151 2010 1 7 15 /
M1151 2010 1 7 16 /
M1151 2010 1 7 17 /
M1151 2010 1 7 18 /
M1151 2010 1 7 19 /
M1151 2010 1 7 20 /
M1151 2010 1 8 21 /
M1151 2010 1 8 22 /
M1151 2010 1 8 23 /
M1151 2010 1 8 0 /
M1151 2010 1 8 1 /
M1151 2010 1 8 2 /
M1151 2010 1 8 3 /
M1151 2010 1 8 4 /
M1151 2010 1 8 5 /
M1151 2010 1 8 6 /
M1151 2010 1 8 7 /
M1151 2010 1 8 8 /
M1151 2010 1 8 9 /
M1151 2010 1 8 10 /
M1151 2010 1 8 11 /
M1151 2010 1 8 12 /
M1151 2010 1 8 13 /
M1151 2010 1 8 14 /
M1151 2010 1 8 15 /
M1151 2010 1 8 16 /
M1151 2010 1 8 17 /
M1151 2010 1 8 18 /
M1151 2010 1 8 19 /
M1151 2010 1 8 20 /
M1151 2010 1 9 21 /
M1151 2010 1 9 22 /
M1151 2010 1 9 23 /
M1151 2010 1 9 0 /
M1151 2010 1 9 1 /
M1151 2010 1 9 2 /
M1151 2010 1 9 3 /
M1151 2010 1 9 4 /
M1151 2010 1 9 5 /
M1151 2010 1 9 6 /
M1151 2010 1 9 7 /
M1151 2010 1 9 8 /
M1151 2010 1 9 9 /
M1151 2010 1 9 10 /
M1151 2010 1 9 11 0.0
M1151 2010 1 9 12 0.0
M1151 2010 1 9 13 0.0
M1151 2010 1 9 14 0.0
M1151 2010 1 9 15 0.0
M1151 2010 1 9 16 0.0
M1151 2010 1 9 17 0.0
M1151 2010 1 9 18 0.0
M1151 2010 1 9 19 0.0
M1151 2010 1 9 20 0.0
M1151 2010 1 10 21 0.0
M1151 2010 1 10 22 0.0
M1151 2010 1 10 23 0.0
M1151 2010 1 10 0 0.0
M1151 2010 1 10 1 0.0
M1151 2010 1 10 2 0.0
M1151 2010 1 10 3 0.0
M1151 2010 1 10 4 0.0
M1151 2010 1 10 5 0.0
M1151 2010 1 10 6 0.0
M1151 2010 1 10 7 0.0
M1151 2010 1 10 8 0.0
M1151 2010 1 10 9 0.0
M1151 2010 1 10 10 0.0
M1151 2010 1 10 11 0.0
M1151 2010 1 10 12 0.0
M1151 2010 1 10 13 0.0
M1151 2010 1 10 14 0.0
M1151 2010 1 10 15 0.0
M1151 2010 1 10 16 0.0
M1151 2010 1 10 17 0.0
M1151 2010 1 10 18 0.0
M1151 2010 1 10 19 0.0
M1151 2010 1 10 20 0.0
M1151 2010 1 11 21 0.0
M1151 2010 1 11 22 0.0
M1151 2010 1 11 23 0.0
M1151 2010 1 11 0 0.0
M1151 2010 1 11 1 0.0
M1151 2010 1 11 2 0.0
M1151 2010 1 11 3 0.0
M1151 2010 1 11 4 0.0
M1151 2010 1 11 5 0.0
M1151 2010 1 11 6 0.0
M1151 2010 1 11 7 0.0
M1151 2010 1 11 8 0.0
M1151 2010 1 11 9 0.0
M1151 2010 1 11 10 0.0
M1151 2010 1 11 11 0.0
M1151 2010 1 11 12 0.0
M1151 2010 1 11 13 0.0
M1151 2010 1 11 14 0.0
M1151 2010 1 11 15 0.0
M1151 2010 1 11 16 0.0
M1151 2010 1 11 17 0.0
M1151 2010 1 11 18 0.0
M1151 2010 1 11 19 0.0
M1151 2010 1 11 20 0.0
M1151 2010 1 12 21 0.0
M1151 2010 1 12 22 0.0
M1151 2010 1 12 23 0.0
M1151 2010 1 12 0 0.0
M1151 2010 1 12 1 0.0
M1151 2010 1 12 2 0.0
M1151 2010 1 12 3 0.0
M1151 2010 1 12 4 0.0
M1151 2010 1 12 5 0.0
M1151 2010 1 12 6 0.0
M1151 2010 1 12 7 0.0
M1151 2010 1 12 8 0.0
M1151 2010 1 12 9 0.0
M1151 2010 1 12 10 0.0
M1151 2010 1 12 11 0.0
M1151 2010 1 12 12 0.0
M1151 2010 1 12 13 0.0
M1151 2010 1 12 14 0.0
M1151 2010 1 12 15 0.0
M1151 2010 1 12 16 0.0
M1151 2010 1 12 17 0.0
M1151 2010 1 12 18 0.0
M1151 2010 1 12 19 0.0
M1151 2010 1 12 20 0.0
M1151 2010 1 13 21 0.0
M1151 2010 1 13 22 0.0
M1151 2010 1 13 23 /
M1151 2010 1 13 0 /
M1151 2010 1 13 1 /
M1151 2010 1 13 2 /
M1151 2010 1 13 3 /
M1151 2010 1 13 4 /
M1151 2010 1 13 5 /
M1151 2010 1 13 6 /
M1151 2010 1 13 7 /
M1151 2010 1 13 8 /
M1151 2010 1 13 9 /
M1151 2010 1 13 10 /
M1151 2010 1 13 11 /
M1151 2010 1 13 12 /
M1151 2010 1 13 13 /
M1151 2010 1 13 14 /
M1151 2010 1 13 15 /
M1151 2010 1 13 16 /
M1151 2010 1 13 17 /
M1151 2010 1 13 18 /
M1151 2010 1 13 19 /
M1151 2010 1 13 20 /
M1151 2010 1 14 21 /
M1151 2010 1 14 22 /
M1151 2010 1 14 23 /
M1151 2010 1 14 0 /
M1151 2010 1 14 1 /
M1151 2010 1 14 2 /
M1151 2010 1 14 3 /
M1151 2010 1 14 4 /
M1151 2010 1 14 5 /
M1151 2010 1 14 6 /
M1151 2010 1 14 7 /
M1151 2010 1 14 8 /
M1151 2010 1 14 9 /
M1151 2010 1 14 10 /
M1151 2010 1 14 11 /
M1151 2010 1 14 12 /
M1151 2010 1 14 13 /
M1151 2010 1 14 14 /
M1151 2010 1 14 15 /
M1151 2010 1 14 16 /
M1151 2010 1 14 17 /
M1151 2010 1 14 18 /
M1151 2010 1 14 19 /
M1151 2010 1 14 20 /
M1151 2010 1 15 21 /
M1151 2010 1 15 22 /
M1151 2010 1 15 23 /
M1151 2010 1 15 0 /
M1151 2010 1 15 1 /
M1151 2010 1 15 2 /
M1151 2010 1 15 3 /
M1151 2010 1 15 4 /
M1151 2010 1 15 5 /
M1151 2010 1 15 6 /
M1151 2010 1 15 7 /
M1151 2010 1 15 8 /
M1151 2010 1 15 9 /
M1151 2010 1 15 10 /
M1151 2010 1 15 11 0.0
M1151 2010 1 15 12 0.0
M1151 2010 1 15 13 0.0
M1151 2010 1 15 14 0.0
M1151 2010 1 15 15 0.0
M1151 2010 1 15 16 0.0
M1151 2010 1 15 17 0.0
M1151 2010 1 15 18 0.0
M1151 2010 1 15 19 0.0
M1151 2010 1 15 20 0.0
M1151 2010 1 16 21 0.0
M1151 2010 1 16 22 0.0
M1151 2010 1 16 23 0.0
M1151 2010 1 16 0 0.0
M1151 2010 1 16 1 0.0
M1151 2010 1 16 2 0.0
M1151 2010 1 16 3 0.0
M1151 2010 1 16 4 0.0
M1151 2010 1 16 5 0.0
M1151 2010 1 16 6 0.0
M1151 2010 1 16 7 0.0
M1151 2010 1 16 8 0.0
M1151 2010 1 16 9 0.0
M1151 2010 1 16 10 0.0
M1151 2010 1 16 11 0.0
M1151 2010 1 16 12 0.0
M1151 2010 1 16 13 0.0
M1151 2010 1 16 14 0.0
M1151 2010 1 16 15 0.0
M1151 2010 1 16 16 0.0
M1151 2010 1 16 17 0.0
M1151 2010 1 16 18 0.0
M1151 2010 1 16 19 0.0
M1151 2010 1 16 20 0.0
M1151 2010 1 17 21 0.0
M1151 2010 1 17 22 0.0
M1151 2010 1 17 23 0.0
M1151 2010 1 17 0 0.0
M1151 2010 1 17 1 0.0
M1151 2010 1 17 2 0.0
M1151 2010 1 17 3 0.0
M1151 2010 1 17 4 0.0
M1151 2010 1 17 5 0.0
M1151 2010 1 17 6 0.0
M1151 2010 1 17 7 0.0
M1151 2010 1 17 8 0.0
M1151 2010 1 17 9 0.0
M1151 2010 1 17 10 0.0
M1151 2010 1 17 11 0.1
M1151 2010 1 17 12 0.0
M1151 2010 1 17 13 0.0
M1151 2010 1 17 14 0.0
M1151 2010 1 17 15 0.0
M1151 2010 1 17 16 0.0
M1151 2010 1 17 17 0.0
M1151 2010 1 17 18 0.0
M1151 2010 1 17 19 0.0
M1151 2010 1 17 20 0.0
M1151 2010 1 18 21 0.0
M1151 2010 1 18 22 0.0
M1151 2010 1 18 23 0.0
M1151 2010 1 18 0 0.0
M1151 2010 1 18 1 0.0
M1151 2010 1 18 2 0.0
M1151 2010 1 18 3 0.0
M1151 2010 1 18 4 0.0
M1151 2010 1 18 5 0.0
M1151 2010 1 18 6 0.0
M1151 2010 1 18 7 0.0
M1151 2010 1 18 8 0.0
M1151 2010 1 18 9 0.0
M1151 2010 1 18 10 0.0
M1151 2010 1 18 11 0.0
M1151 2010 1 18 12 0.0
M1151 2010 1 18 13 0.0
M1151 2010 1 18 14 0.0
M1151 2010 1 18 15 0.0
M1151 2010 1 18 16 0.0
M1151 2010 1 18 17 0.0
M1151 2010 1 18 18 0.0
M1151 2010 1 18 19 0.0
M1151 2010 1 18 20 0.0
M1151 2010 1 19 21 0.0
M1151 2010 1 19 22 0.0
M1151 2010 1 19 23 0.0
M1151 2010 1 19 0 0.0
M1151 2010 1 19 1 0.0
M1151 2010 1 19 2 0.0
M1151 2010 1 19 3 0.0
M1151 2010 1 19 4 0.0
M1151 2010 1 19 5 0.0
M1151 2010 1 19 6 0.0
M1151 2010 1 19 7 0.0
M1151 2010 1 19 8 0.0
M1151 2010 1 19 9 0.0
M1151 2010 1 19 10 0.0
M1151 2010 1 19 11 0.0
M1151 2010 1 19 12 0.0
M1151 2010 1 19 13 0.0
M1151 2010 1 19 14 0.0
M1151 2010 1 19 15 0.0
M1151 2010 1 19 16 0.0
M1151 2010 1 19 17 0.0
M1151 2010 1 19 18 0.0
M1151 2010 1 19 19 0.0
M1151 2010 1 19 20 0.0
M1151 2010 1 20 21 0.0
M1151 2010 1 20 22 0.0
M1151 2010 1 20 23 0.0
M1151 2010 1 20 0 0.0
M1151 2010 1 20 1 0.0
M1151 2010 1 20 2 0.0
M1151 2010 1 20 3 0.0
M1151 2010 1 20 4 0.0
M1151 2010 1 20 5 0.0
M1151 2010 1 20 6 0.0
M1151 2010 1 20 7 0.0
M1151 2010 1 20 8 0.0
M1151 2010 1 20 9 0.0
M1151 2010 1 20 10 0.0
M1151 2010 1 20 11 0.0
M1151 2010 1 20 12 0.0
M1151 2010 1 20 13 0.0
M1151 2010 1 20 14 0.0
M1151 2010 1 20 15 0.0
M1151 2010 1 20 16 0.0
M1151 2010 1 20 17 0.0
M1151 2010 1 20 18 0.0
M1151 2010 1 20 19 0.0
M1151 2010 1 20 20 0.0
M1151 2010 1 21 21 0.0
M1151 2010 1 21 22 0.0
M1151 2010 1 21 23 0.0
M1151 2010 1 21 0 0.0
M1151 2010 1 21 1 0.0
M1151 2010 1 21 2 0.0
M1151 2010 1 21 3 0.0
M1151 2010 1 21 4 0.0
M1151 2010 1 21 5 0.0
M1151 2010 1 21 6 0.0
M1151 2010 1 21 7 0.0
M1151 2010 1 21 8 0.0
M1151 2010 1 21 9 0.0
M1151 2010 1 21 10 0.0
M1151 2010 1 21 11 0.0
M1151 2010 1 21 12 0.0
M1151 2010 1 21 13 0.0
M1151 2010 1 21 14 0.0
M1151 2010 1 21 15 0.0
M1151 2010 1 21 16 0.0
M1151 2010 1 21 17 0.4
M1151 2010 1 21 18 0.7
M1151 2010 1 21 19 0.3
M1151 2010 1 21 20 0.1
M1151 2010 1 22 21 0.1
M1151 2010 1 22 22 0.0
M1151 2010 1 22 23 0.0
M1151 2010 1 22 0 0.0
M1151 2010 1 22 1 0.0
M1151 2010 1 22 2 0.0
M1151 2010 1 22 3 0.0
M1151 2010 1 22 4 0.0
M1151 2010 1 22 5 0.1
M1151 2010 1 22 6 0.0
M1151 2010 1 22 7 0.0
M1151 2010 1 22 8 0.1
M1151 2010 1 22 9 0.0
M1151 2010 1 22 10 0.1
M1151 2010 1 22 11 0.0
M1151 2010 1 22 12 0.0
M1151 2010 1 22 13 0.0
M1151 2010 1 22 14 0.0
M1151 2010 1 22 15 0.0
M1151 2010 1 22 16 0.0
M1151 2010 1 22 17 0.0
M1151 2010 1 22 18 0.0
M1151 2010 1 22 19 0.0
M1151 2010 1 22 20 0.0
M1151 2010 1 23 21 0.0
M1151 2010 1 23 22 0.0
M1151 2010 1 23 23 0.0
M1151 2010 1 23 0 0.0
M1151 2010 1 23 1 0.0
M1151 2010 1 23 2 0.0
M1151 2010 1 23 3 0.0
M1151 2010 1 23 4 0.0
M1151 2010 1 23 5 0.0
M1151 2010 1 23 6 0.0
M1151 2010 1 23 7 0.0
M1151 2010 1 23 8 0.0
M1151 2010 1 23 9 0.0
M1151 2010 1 23 10 0.0
M1151 2010 1 23 11 0.0
M1151 2010 1 23 12 0.0
M1151 2010 1 23 13 0.0
M1151 2010 1 23 14 0.0
M1151 2010 1 23 15 0.0
M1151 2010 1 23 16 0.0
M1151 2010 1 23 17 0.1
M1151 2010 1 23 18 0.0
M1151 2010 1 23 19 0.1
M1151 2010 1 23 20 /
M1151 2010 1 24 21 /
M1151 2010 1 24 22 /
M1151 2010 1 24 23 /
M1151 2010 1 24 0 /
M1151 2010 1 24 1 /
M1151 2010 1 24 2 /
M1151 2010 1 24 3 /
M1151 2010 1 24 4 /
M1151 2010 1 24 5 /
M1151 2010 1 24 6 /
M1151 2010 1 24 7 /
M1151 2010 1 24 8 /
M1151 2010 1 24 9 /
M1151 2010 1 24 10 /
M1151 2010 1 24 11 /
M1151 2010 1 24 12 /
M1151 2010 1 24 13 /
M1151 2010 1 24 14 /
M1151 2010 1 24 15 /
M1151 2010 1 24 16 /
M1151 2010 1 24 17 /
M1151 2010 1 24 18 /
M1151 2010 1 24 19 /
M1151 2010 1 24 20 /
M1151 2010 1 25 21 /
M1151 2010 1 25 22 /
M1151 2010 1 25 23 /
M1151 2010 1 25 0 /
M1151 2010 1 25 1 /
M1151 2010 1 25 2 /
M1151 2010 1 25 3 /
M1151 2010 1 25 4 /
M1151 2010 1 25 5 /
M1151 2010 1 25 6 /
M1151 2010 1 25 7 /
M1151 2010 1 25 8 /
M1151 2010 1 25 9 /
M1151 2010 1 25 10 /
M1151 2010 1 25 11 /
M1151 2010 1 25 12 /
M1151 2010 1 25 13 /
M1151 2010 1 25 14 /
M1151 2010 1 25 15 /
M1151 2010 1 25 16 /
M1151 2010 1 25 17 0.0
M1151 2010 1 25 18 0.0
M1151 2010 1 25 19 0.0
M1151 2010 1 25 20 0.0
M1151 2010 1 26 21 0.0
M1151 2010 1 26 22 0.0
M1151 2010 1 26 23 0.1
M1151 2010 1 26 0 0.3
M1151 2010 1 26 1 0.1
M1151 2010 1 26 2 0.0
M1151 2010 1 26 3 0.0
M1151 2010 1 26 4 0.0
M1151 2010 1 26 5 0.0
M1151 2010 1 26 6 /
M1151 2010 1 26 7 /
M1151 2010 1 26 8 /
M1151 2010 1 26 9 /
M1151 2010 1 26 10 /
M1151 2010 1 26 11 /
M1151 2010 1 26 12 /
M1151 2010 1 26 13 /
M1151 2010 1 26 14 /
M1151 2010 1 26 15 /
M1151 2010 1 26 16 /
M1151 2010 1 26 17 /
M1151 2010 1 26 18 /
M1151 2010 1 26 19 /
M1151 2010 1 26 20 /
M1151 2010 1 27 21 /
M1151 2010 1 27 22 /
M1151 2010 1 27 23 /
M1151 2010 1 27 0 /
M1151 2010 1 27 1 /
M1151 2010 1 27 2 /
M1151 2010 1 27 3 /
M1151 2010 1 27 4 /
M1151 2010 1 27 5 /
M1151 2010 1 27 6 /
M1151 2010 1 27 7 /
M1151 2010 1 27 8 /
M1151 2010 1 27 9 /
M1151 2010 1 27 10 /
M1151 2010 1 27 11 /
M1151 2010 1 27 12 0.0
M1151 2010 1 27 13 0.0
M1151 2010 1 27 14 0.0
M1151 2010 1 27 15 0.0
M1151 2010 1 27 16 0.0
M1151 2010 1 27 17 0.0
M1151 2010 1 27 18 0.0
M1151 2010 1 27 19 0.0
M1151 2010 1 27 20 0.0
M1151 2010 1 28 21 0.0
M1151 2010 1 28 22 0.0
M1151 2010 1 28 23 0.0
M1151 2010 1 28 0 0.0
M1151 2010 1 28 1 0.0
M1151 2010 1 28 2 0.0
M1151 2010 1 28 3 0.0
M1151 2010 1 28 4 0.0
M1151 2010 1 28 5 0.0
M1151 2010 1 28 6 0.0
M1151 2010 1 28 7 0.0
M1151 2010 1 28 8 0.0
M1151 2010 1 28 9 0.0
M1151 2010 1 28 10 0.0
M1151 2010 1 28 11 0.0
M1151 2010 1 28 12 0.0
M1151 2010 1 28 13 0.0
M1151 2010 1 28 14 /
M1151 2010 1 28 15 /
M1151 2010 1 28 16 /
M1151 2010 1 28 17 0.0
M1151 2010 1 28 18 0.0
M1151 2010 1 28 19 0.0
M1151 2010 1 28 20 0.0
M1151 2010 1 29 21 0.0
M1151 2010 1 29 22 0.0
M1151 2010 1 29 23 0.0
M1151 2010 1 29 0 0.0
M1151 2010 1 29 1 0.0
M1151 2010 1 29 2 0.0
M1151 2010 1 29 3 0.0
M1151 2010 1 29 4 0.0
M1151 2010 1 29 5 0.0
M1151 2010 1 29 6 0.0
M1151 2010 1 29 7 0.0
M1151 2010 1 29 8 0.0
M1151 2010 1 29 9 0.0
M1151 2010 1 29 10 0.0
M1151 2010 1 29 11 0.0
M1151 2010 1 29 12 0.0
M1151 2010 1 29 13 0.0
M1151 2010 1 29 14 0.0
M1151 2010 1 29 15 0.0
M1151 2010 1 29 16 0.0
M1151 2010 1 29 17 0.0
M1151 2010 1 29 18 0.0
M1151 2010 1 29 19 0.0
M1151 2010 1 29 20 0.0
M1151 2010 1 30 21 0.0
M1151 2010 1 30 22 0.0
M1151 2010 1 30 23 0.0
M1151 2010 1 30 0 0.0
M1151 2010 1 30 1 0.0
M1151 2010 1 30 2 0.0
M1151 2010 1 30 3 0.0
M1151 2010 1 30 4 0.0
M1151 2010 1 30 5 0.0
M1151 2010 1 30 6 0.0
M1151 2010 1 30 7 0.0
M1151 2010 1 30 8 0.0
M1151 2010 1 30 9 0.0
M1151 2010 1 30 10 0.0
M1151 2010 1 30 11 0.0
M1151 2010 1 30 12 0.0
M1151 2010 1 30 13 0.0
M1151 2010 1 30 14 0.0
M1151 2010 1 30 15 0.0
M1151 2010 1 30 16 0.0
M1151 2010 1 30 17 0.0
M1151 2010 1 30 18 0.0
M1151 2010 1 30 19 0.0
M1151 2010 1 30 20 0.0
M1151 2010 1 31 21 0.0
M1151 2010 1 31 22 0.0
M1151 2010 1 31 23 0.0
M1151 2010 1 31 0 0.0
M1151 2010 1 31 1 0.0
M1151 2010 1 31 2 0.0
M1151 2010 1 31 3 0.0
M1151 2010 1 31 4 0.0
M1151 2010 1 31 5 0.0
M1151 2010 1 31 6 0.0
M1151 2010 1 31 7 0.0
M1151 2010 1 31 8 0.0
M1151 2010 1 31 9 0.0
M1151 2010 1 31 10 0.0
M1151 2010 1 31 11 0.0
M1151 2010 1 31 12 0.0
M1151 2010 1 31 13 0.0
M1151 2010 1 31 14 0.0
M1151 2010 1 31 15 0.0
M1151 2010 1 31 16 0.0
M1151 2010 1 31 17 0.0
M1151 2010 1 31 18 0.0
M1151 2010 1 31 19 0.0
M1151 2010 1 31 20 0.0
永恒的蓝色梦想 发表于 2020-5-25 11:35
你发截图什么用都没有,不如改几个数发上来。
而且你发截图本身就泄密了。
好的~ Twilight6 发表于 2020-5-25 11:35
数据类型差不多是这样的吧?
是的大佬{:10_266:} AisakaTaiga 发表于 2020-5-25 11:36
是的大佬
噗 也不用发这么多 两三行足够了 Twilight6 发表于 2020-5-25 11:37
噗 也不用发这么多 两三行足够了
哈哈哈,因为有些是缺省值,怕贴几行看的不够全{:10_250:} Twilight6 发表于 2020-5-25 11:37
噗 也不用发这么多 两三行足够了
真的是程序小白,自己看着小甲鱼的课程编的程序,估计问题很大,望大佬不吝赐教 AisakaTaiga 发表于 2020-5-25 11:39
真的是程序小白,自己看着小甲鱼的课程编的程序,估计问题很大,望大佬不吝赐教
if each_line[:3] != "区站号":
因为区站号是最前面三个字符 你改成这样才行过滤掉那行 Twilight6 发表于 2020-5-25 11:41
因为区站号是最前面三个字符 你改成这样才行过滤掉那行
哦哦哦,我以为一个汉字占4字符{:10_269:} AisakaTaiga 发表于 2020-5-25 11:43
哦哦哦,我以为一个汉字占4字符
这里填的是位置参数 不是字符 ,Python 我学到现在暂时没有填字符的参数 Twilight6 发表于 2020-5-25 11:44
这里填的是位置参数 不是字符 ,Python 我学到现在暂时没有填字符的参数
受教了,大佬我这个程序跑出来只有24个值,循环那里应该怎么改呢