0
numberOfTime = 0
with open('httpd-access.txt') as f:
for line in f:
finded = line.find('81')
if finded != -1 and finded != 0:
numberOfTime += 1
私はちょうど行の開始回数81
。 Thanx!は "httpd-access.txt"というファイルを持っていて、私はPythonで行が '81'で始まる回数を数えたいと思っています
!!それは仕事です! :) –