Python 练习册,天天一个小程序(0007)

详细题目在https://github.com/Yixiaohan/show-me-the-code上。这次是0007题,统计文件夹内程序文件的行数。python # -*- coding: UTF-8 -*- import os import re #将文件夹中的每一个文件目录放入一个列表中 def getFile(directory): list = os.listdir(direc
相关文章
相关标签/搜索