2016/8/27

It's not a productive day...
Though i went dorm not so late yesterday, i could not went sleep until 2:00 morning, and my state recently was not very good. Maybe i worked too hard recently. 
In the morning, my laptop could not connect to the Internet, I try to solve the problem for the whole morning. Nothing did i do. i regret so much. i'm easily distracted from small troubles. i often  request the environment to be nearly perfect, no trifles should exist in my eyes. Unless a task must be finished in given time, i try to overcome all the troubles. In fact, before a problem really obstacles you, it's not qualified to be a problem. Foreseeing is a good characteristic, but any good characteristics that mingled with stubborn is a shortcoming. Foreseeing should be used in the right place. Go along, when troubles exist, kill it.
In the afternoon, due to yesterday's sleeping quality, my nap takes me more than one hour. I am mentally kind of tired, so it didn't begin to work when i reached lab. i take a cup of coffee and read a book in the cafe. during that, i discussed with a member of social network group about the model she used. 
In the evening, it's really a total waste of time. i browse the jokes and news in my phone and laptop. When i was bored with this, it's almost 21:00. After writing two blogs, it's roughly time to go back. So i write these. Except for chatting with Jays and writing two blogs, nothing worth the time!
You need to recover from upset!
阅读以下题目,分别对应两个问题,实现以下功能: 下面所示为一套由海员随身佩戴的位置传感器采集的数据,其内容示例如下: 2016/5/31 0:05, vawelon001, 1, 1 2016/5/31 0:20, earpa001,3,4 2016/5/31 2:26, earpa001,2,1 2016/5/31 0:25, earpa002,4,2 2016/5/31 2:27, earpa004,5, 6 2016/5/31 0:09, vawelon002, 1, 1 2016/6/1 2:26, earpa003,7, 2 2016/6/13 7:26, earpa001,6,2 2016/6/31 10:05, vawelon002, 2, 1 第一列是传感器获取数据的时间,第二列是传感器的编号,第三列是传感器所在的位置区域编号,第四列是传感器所在的楼层。 问题1: 用Python创建的“info.txt”文件,并将给出的数据输入并写入新创建的文件中,之后提取出传感器编号为earpa00的所有数据,将结果输出保存到“earpa001. txt”文件。输出文件格式要求:原数据文件中的每行记录写入新文件中,行尾无空格,无空行。参考格式如下: 2016/5/31 7:11, earpa001,2, 4 2016/5/31 8:02, earpa001,3, 4 2016/5/31 9:22, earpa001,3,4 问题2 :读入“earpa001. txt” 文件中的数据,统计earpa001对应的职员在各楼层和区域出现的次数,保存到“earpa001_count. txt” 文件,每条记录一行,位置信息和出现的次数之间用英文半角逗号隔开,行尾无空格,无空行。参考格式如下。 2-5,1 1-3,4 含义如下: 第1行“2-5,1”中1-1表示2号区域的5楼,5表示出现5次; 第2行“1-3,4”中1-4表示1号区域的3楼,3表示出现3次;
03-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值