python编程题目要求:Write a program to read through the mbox-short.

python编程

题目要求:Write a program to read through the mbox-short.txt and figure out the distribution by hour of the day for each of the messages. You can pull the hour out from the 'From ' line by finding the time and then splitting the string a second time using a colon.

From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008

Once you have accumulated the counts for each hour, print out the counts, sorted by hour as shown below. Note that the autograder does not have support for the sorted() function.


追上你啦抱抱 1年前 已收到1个回答 举报

baoweizuguo 果实

共回答了19个问题采纳率:100% 举报

我晕.....编译软件 都不会自己搜索下载 还学P的编程啊?? python 最新是3.X 3.X和2.X 有一些语法区别

1年前

1
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.823 s. - webmaster@yulucn.com