Oktatás * Programozás 2 * Szkriptnyelvek * levelezősök Félévek Linkek * kalendárium |
EnPy3 /
20130326aLast N lines During the 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://www.smartsmarina.com/product_photos/superior1.jpg, s/o/e/ |
Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |