- 博客(5)
- 收藏
- 关注
原创 PY4E Chapter10 Exercise
PY4E Chapter10Exercise 1: Revise a previous program as follows: Read and parse the “From”lines and pull out the addresses from the line. Count the number of messages fromeach person using a diction...
2019-03-24 14:13:14
1103
原创 PY4E Chapter9 Exercise
Exercise 2: Write a program that categorizes each mail message by which day ofthe week the commit was done. To do this look for lines that start with “From”,then look for the third word and keep a r...
2019-02-11 15:51:44
1162
原创 PY4E Chapter8 Exercise
exercise4Enter file: romeo.txt[‘Arise’, ‘But’, ‘It’, ‘Juliet’, ‘Who’, ‘already’,‘and’, ‘breaks’, ‘east’, ‘envious’, ‘fair’, ‘grief’,‘is’, ‘kill’, ‘light’, ‘moon’, ‘pale’, ‘sick’, ‘soft’,‘sun’, ‘...
2019-01-28 23:10:47
1042
原创 PY4E Chapter7 Exercise
Exercise 1Write a program to read through a file and print the contents of thefile (line by line) all in upper case. Executing the program will look as follows:python shout.pyEnter a file name: m...
2019-01-27 23:19:22
1205
原创 PY4E Chapter6 Exercise
**py4e chapter6 exercise3AssignmentEncapsulate this code in a function named count, and generalize it so that it accepts the string and the letter as arguments.**word = input('Please input a word...
2019-01-26 23:03:54
408
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅