除2就可以了。 def totalPrime(a): total = 0 for num in a: total += num//2 return total
点赞 1

相关推荐

牛客网
牛客企业服务