Oktatás * Programozás 2 * Szkriptnyelvek * levelezősök Félévek Linkek * kalendárium |
EnPy /
20130326aLast N lines During Operating Systems lab you may have heard about the " Exercise Write a script that works similarly to the Unix " ./my_tail.py -10 input.txt Version (B) In order to practice OO programming, solve the exercise with a class. How to use it: ... tail = Tail(<input_file>, <N>) tail.print_result() Where " Bonus point: if solved correctly, you can get +1 point. I want to see a non-trivial solution! That is, I won't accept if you count the number of lines and then skip Tip: http://philhaberphotography.photoshelter.com/image/I00006RNqFbmZ4Qo, s/o/e/ , 3/4 |
Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |