hausaufgabe--python 29- File 2

000

get the files name and save what the users input _ with ':w' to save and quit 

 

running result:

defect: no pop up message for user to input the text.

standar:

001

to print the specific path file with defined lines 

 running result:

another solution:

002

to print specific lines for a file :

running result:

 

 another solution:

running result:

003

 to compare 2 files difference

running result:

004

to find a word and replace with another one in a file:

running result:

reffered:

http://bbs.fishc.com/forum.php?mod=viewthread&tid=45279&extra=page%3D1%26filter%3Dtypeid%26typeid%3D403

find and replace a word in a string:

http://blog.csdn.net/u011860731/article/details/46956953

http://blog.csdn.net/seetheworld518/article/details/47346143

open a unicode txt:

http://www.cnblogs.com/mengyu/p/6638975.html

原文地址:https://www.cnblogs.com/Shareishappy/p/7148284.html