python怎么统计txt文件的字数

python怎么统计txt文件的字数

如下统计白夜行.txt的字数:file_name = '白夜行.txt'结果:The file 白夜行.txt has about 487761 words.【Python】统计字符串中英文、空格、数字、标点个数
Python200