-4
count=0
count2=0
print(header)
def countWord():
for i in f1sen:
count= len(re.findall(r'\w+', i)) #command to count all the words
print(i,"Number of words: ",count)
for j in f2sen:
count2= len(re.findall(r'\w+', j)) #command to count all the words
print(j,"Number of words: ",count2)
에서 들여 쓰기 내가 그것을 실행하려고 할 때, 그것은 나에게 다음과 같은 오류 제공 :python3
이File "C:\Users\George\Documents\Programming for digital Humanities\Assignment 3\assig3.py3", line 48
for j in f2sen:
^
IndentationError: unindent does not match any outer indentation level
[Finished in 0.2s]
누군가가 나에게이 문제를 해결하는 데 도움이 수 있습니까? 고맙습니다.
이 줄 앞뒤의 공백을 확인하십시오. 줄을 제거한 후 줄을 다시 편집하십시오. – alfasin