各位大佬,下面的代码填空怎么做哇?

用函数实现统计字符串中,字母和数字及不包括子母及数字的个数,在函数外输入 字符串并输出统计结果。

def Dcount(str):

alph=digit=other=0

for i in str:

if______ .isalpha()==True:

alph+=1

elif______ .isdigit()==True:

digit+=1

else:other+=1

return alph,digit,other

x=(input())
print("alph=%d,digit=%d,other=%d"%Dcount(x))

# -*- coding: UTF-8 -*-
def Dcount(str):
    alph=digit=other=0
    for i in str:
        if i.isalpha()==True:
            alph+=1
        elif i.isdigit()==True:
            digit+=1
        else:
            other+=1
    return alph,digit,other

x=(input())
print("alph=%d,digit=%d,other=%d"%Dcount(x))