📜  转换器 python 到 C - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:52.621000             🧑  作者: Mango

代码示例2
num = input()
xzoj = 0
zoj = 0
fard = 0 
xfard = 0
for i in range(len(num)):
    if int(num[i]) % 2 ==0:
        xzoj +=1
        zoj += int(num[i])
    else :
        xfard +=1
        fard +=int(num[i])
print(zoj / xzoj)
print(fard / xfard)