hausaufgabe--python 30

000

To list the types of the files in define dir :

Running result:

Standar:

referred:

http://www.runoob.com/python/att-dictionary-setdefault.html

001

To get the files' size if the defined dir

Running result:

Standar:

002

To search a file in a rough path 

Running Result:

Standar:

 003

 to read the format of the file in a defined dir and then write the path to a new file:

Running result:

Standard:

004

To search the key words in a file with define path, and located the key words in the file 

Running Result:

Standar:

 Running Result:

Refer:

functions find in string:

http://www.yiibai.com/python/string_find.html

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

__os.walk(path)

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