展开全部
score = input('please input score:')
sumScore = 0
while score not in ('N', 'n'):
if 0 <= int(score) <= 100:
sumScore += int(score)
else:
print 'error'
score = input('please input score:')
else:
print sumScore
import math
def areaContentrate(radiusOut, radiusIn):
return math.pi * (radiusOut ** 2 - radiusIn ** 2)
radiusOut = input("please input outer radius:")
radiusIn = input("please input inner radius:")
print areaContentrate(radiusOut, radiusIn)
这边2113好像不好缩进5261。代码就类似4102这样没1653错了