我完全是一个新手,我不知道我的代码有什么问题。我尝试对其进行多次调整,但没有奏效,并且expected an intended block
在我运行代码时一直发出警报。
def abc(words_list):
number1 = 0
number2 = 0
for L in words_list:
if L[0] in 'aeiou':
number1 = number1 + 1
else:
number2 = number2 + 1
first_char = L[0]
for i in range(1,len[L]):
L[i-1] = L[i]
L[-1] = first_char
L = L + 'ay'
return(number1, number2)