filename = 'silver.txt'
with open(filename) as fl_obj:
cont = fl_obj.read()
num1 = cont.count('the')
num2 = cont.lower().count('the')
print(num1,num2)
10-10
最新推荐文章于 2020-05-02 15:12:56 发布
filename = 'silver.txt'
with open(filename) as fl_obj:
cont = fl_obj.read()
num1 = cont.count('the')
num2 = cont.lower().count('the')
print(num1,num2)