python:实现统计文本文件有多少空格和换行
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'python'
def calcWords(path):
file = open(path, 'r')
inputStr
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'python'
def calcWords(path):
file = open(path, 'r')
inputStr