下列程序段运行后,打印结果为9。
def f():
s=0
for i in range(3,1,-1):
if i<=1:
x=1
if i<=2:
x=2
if i<=3:
x=3
s=s+x
return s
print(f())